pypiserver

by Community Helm Charts

Helm chartv0.1.9App v2.4.1MITVerified publisher

A Helm chart for PyPI Server

About this chart

pypiserver

A Helm chart for PyPI Server

Official Documentation

For detailed usage instructions, configuration options, and additional information about the pypiserver Helm chart, refer to the official documentation.

Get Helm Repository Info

helm repo add community-charts https://community-charts.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Installing the Chart

helm install [RELEASE_NAME] community-charts/pypiserver

See configuration below.

See helm install for command documentation.

Tip: Search all available chart versions using helm search repo community-charts -l. Please don't forget to run helm repo update before the command.

Requirements

Kubernetes: >=1.13.0-0

Uninstall Helm Chart

helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade [RELEASE_NAME] community-charts/pypiserver

Values

KeyTypeDefaultDescription
affinityobject{}For more information checkout: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
fullnameOverridestring""
imageobject{"pullPolicy":"IfNotPresent","repository":"pypiserver/pypiserver","tag":""}This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image.pullPolicystring"IfNotPresent"This sets the pull policy for images.
image.repositorystring"pypiserver/pypiserver"The docker image repository to use
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"pypiserver.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress.annotationsobject{}This is for setting up the ingress annotations
ingress.classNamestring""This is for setting up the ingress class name
ingress.enabledboolfalseThis is for setting up the ingress enabled
ingress.hostslist[{"host":"pypiserver.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]This is for setting up the ingress hosts
ingress.hosts[0]object{"host":"pypiserver.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}This is for setting up the ingress host
ingress.hosts[0].pathslist[{"path":"/","pathType":"ImplementationSpecific"}]This is for setting up the ingress paths
ingress.hosts[0].paths[0]object{"path":"/","pathType":"ImplementationSpecific"}This is for setting up the ingress path
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"This is for setting up the ingress path type
ingress.tlslist[]This is for setting up the ingress tls
livenessProbeobject{"httpGet":{"path":"/health","port":"http"}}This is to setup the liveness probe more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
nameOverridestring""This is to override the chart name.
nodeSelectorobject{}For more information checkout: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
podAnnotationsobject{}This is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podArgslist["run","-a",".","-P",".","--overwrite"]PyPi server arguments. For more information checkout: https://github.com/pypiserver/pypiserver/tree/main?tab=readme-ov-file#more-details-about-pypi-server-run
podLabelsobject{}This is for setting Kubernetes Labels to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podSecurityContextobject{}This is for setting Security Context to a Pod. For more information checkout: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
readinessProbeobject{"httpGet":{"path":"/health","port":"http"}}This is to setup the readiness probe more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
replicaCountint1This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
resourcesobject{}This block is for setting up the resource management for the pod more information can be found here: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
securityContextobject{}This is for setting Security Context to a Container. For more information checkout: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
serviceobject{"annotations":{},"name":"http","port":8080,"type":"ClusterIP"}This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service.annotationsobject{}Additional service annotations
service.namestring"http"Default Service name
service.portint8080This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
service.typestring"ClusterIP"This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
strategyobject{"type":"Recreate"}This will set the deployment strategy more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
tolerationslist[]For more information checkout: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
volumeMountslist[]Additional volumeMounts on the output Deployment definition.
volumeslist[]Additional volumes on the output Deployment definition.

Support

Reach out in Discussions, or chat with community on Zulip

Homepage: https://github.com/pypiserver/pypiserver

Source Code

Chart Development

Please install unittest helm plugin with helm plugin install https://github.com/helm-unittest/helm-unittest.git command and use following command to run helm unit tests.

helm unittest --strict --file 'unittests/**/*.yaml' charts/pypiserver

Maintainers

NameEmailUrl
burakince[email protected]https://www.burakince.com

Deploy pypiserver with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pypiserver on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpypiserver is pinned at v0.1.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply