pyoci

by anza-labs

Helm chartv1.1.5App v0.1.41Apache-2.0Verified publisher

Publish and install private python packages using OCI/docker registries.

About this chart

pyoci

Publish and install private python packages using OCI/docker registries.

Homepage: https://pyoci.com

Maintainers

NameEmailUrl
shanduur[email protected]http://linkedin.com/in/urbanekmateusz

Source Code

Installation

To install the chart with the release name pyoci:

helm repo add anza-labs https://anza-labs.github.io/charts
helm repo update anza-labs
helm install pyoci anza-labs/pyoci --version 1.1.5

Upgrading

To upgrade an existing installation:

helm upgrade pyoci anza-labs/pyoci

Uninstalling

To uninstall an existing installation:

helm uninstall pyoci

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for the pods.
autoscaling.enabledboolfalseSpecifies whether autoscaling is enabled.
autoscaling.maxReplicasint3Maximum number of replicas for autoscaling.
autoscaling.minReplicasint1Minimum number of replicas for autoscaling.
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage for autoscaling.
autoscaling.targetMemoryUtilizationPercentageint80Target memory utilization percentage for autoscaling.
config.logLevelstring"info"Log filter, defaults to info.
config.maxBodyint50000000Limit the maximum accepted body size in bytes when publishing packages, defaults to 50MB.
config.maxVersionsint10Limit how many versions (in reverse alphabetical order) to fetch filenames for when listing a package. By default PyOCI will only include the last 100 versions. To not limit the versions, set this value to 0.
config.subPathstring""Host PyOCI on a subpath, for example: PYOCI_PATH="/acme-corp".
deploymentStrategyobject{}
fullnameOverridestring""Override for the full name.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"ghcr.io/allexveldman/pyoci"pyoci and repository for the pyoci image.
image.tagstring"v0.1.41"Tag for the image.
imagePullSecretslist[]Secrets for pulling images.
ingress.annotationsobject{}Annotations to add to the ingress.
ingress.classNamestring""Ingress class name.
ingress.enabledboolfalseSpecifies whether ingress should be enabled.
ingress.hostslist[{"host":"pyoci.example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]List of ingress hosts.
ingress.tlslist[]List of TLS configurations for the ingress.
nameOverridestring""Override for the name.
nodeSelectorobject{}Node selector for the pods.
podAnnotationsobject{}Annotations to be added to the pods.
podLabelsobject{}Labels to be added to the pods.
podSecurityContextobject{}
replicaCountint1Number of replicas for the deployment.
resourcesobject{}
securityContextobject{}
service.portint8080Service port.
service.typestring"ClusterIP"Service type.
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.
telemetry.createboolfalseSpecifies whether a secret should be created.
telemetry.deploymentEnvironmentstring""deployment.environment attribute added to OTLP resources.
telemetry.namestring""Specifies name of a config map used to configure the pyoci. If not filled, uses full name.
telemetry.otlpAuthstring""Full Authorization header value to use when sending OTLP requests.
telemetry.otlpEndpointstring""If set, forward logs, traces, and metrics to this OTLP collector endpoint every 30s.
tolerationslist[]Tolerations for the pods.

Deploy pyoci with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pyoci 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 chartpyoci is pinned at v1.1.5 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