app

by shini4i

Helm chartv0.4.0Verified publisher

A Helm chart for a simple app deployment

About this chart

app

A Helm chart for a simple app deployment

Homepage: https://github.com/shini4i/charts

Maintainers

NameEmailUrl
Vadim Gedz[email protected]https://github.com/shini4i

Source Code

Requirements

Kubernetes: >=1.23.0-0

RepositoryNameVersion
https://shini4i.github.io/charts/network-policies0.0.6

Values

KeyTypeDefaultDescription
affinityobject{}
app.additionalVolumeMountslist[]raw yaml definition of additional volume mounts (requires matching volume definition)
app.argslist[]A primary container args
app.automountServiceAccountTokenstringnilWhether the app pods get an API token mounted. Left unset to keep the Kubernetes default
app.commandlist[]A primary container command override
app.deploymentobject{"maxSurge":1,"maxUnavailable":"25%","progressDeadlineSeconds":null,"strategy":"RollingUpdate"}Deployment configuration (only used if kind is set to Deployment)
app.deployment.progressDeadlineSecondsstringnilSeconds a rollout may stall before it is marked failed
app.envlist[]Environment variables to pass to main app container
app.envFromlist[]envFrom to pass to main app container
app.kindstring"Deployment"Allowed values: Deployment or StatefulSet
app.lifecycleobject{}
app.livenessProbeobject{}Liveness probe configuration
app.minReadySecondsstringnilSeconds a new pod must stay ready before it counts as available
app.podLabelsobject{}Labels to add to the app pods on top of the common chart labels. The selector labels cannot be overridden
app.priorityClassNamestring""PriorityClass for the app pods
app.readinessProbeobject{}Readiness probe configuration. A rolling update has no gate without one
app.sharedVolume.enabledbooltrueMount an emptyDir at /shared in the primary container
app.startupProbeobject{}Startup probe configuration
app.statefulSetobject{"headless":{"enabled":false},"persistence":{"enabled":false,"volumes":[]},"podManagementPolicy":"OrderedReady","strategy":"RollingUpdate"}StatefulSet configuration (only used if kind is set to StatefulSet)
app.statefulSet.headless.enabledboolfalseCreate a headless service and point spec.serviceName at it, which is what stable per-pod DNS requires. Off by default because spec.serviceName is immutable: on an existing release the StatefulSet has to be recreated
app.statefulSet.persistence.volumeslist[]Persistent volumes configuration. accessModes defaults to ["ReadWriteOnce"]; size is required
app.terminationGracePeriodSecondsstringnilGrace period for a terminating pod. Should exceed the time the app needs to drain in-flight requests
app.topologySpreadConstraintslist[]Raw yaml definition of topology spread constraints
autoscaling.behaviorobject{}Raw yaml definition of the HPA scaling behavior
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"traefik/whoami"
image.tagstring"v1.10.2"Image tag. Leave empty to pin the image by digest through image.repository
imagePullSecretslist[]
ingressobject{"annotations":{},"className":"","enabled":false,"exposedPort":80,"hosts":[],"tls":[]}Classical ingress definition
ingress.exposedPortint80Port to use with ingress
ingressRouteobject{"annotations":{},"enabled":false,"entryPoint":"websecure","exposedPort":80,"host":"example.com","labels":{},"tls":{"enabled":true},"tlsSecret":"example-com-tls"}Traefik ingressRoute definition
ingressRoute.exposedPortint80Port to use with ingressRoute
ingressRoute.tls.enabledbooltrueTerminate TLS on the route. Turn off for a plain HTTP entryPoint
ingressRoute.tlsSecretstring"example-com-tls"TLS secret for the route. Empty falls back to the entryPoint certificate
initContainerslist[]Raw yaml definition of init containers
job.activeDeadlineSecondsstringnilSeconds a job may run before it is terminated and marked failed
job.affinityobject{}Affinity to use for the job pod
job.annotationsobject{}Annotations to add to the job. Set "helm.sh/hook" here to run the job as a Helm hook
job.argslist[]A job container args
job.backoffLimitint1
job.commandlist["curl","https://ifconfig.me"]A job container command override
job.enabledboolfalse
job.envlist[]Environment variables to pass to job container
job.envFromlist[]envFrom to pass to job container
job.image.pullPolicystring"IfNotPresent"
job.image.repositorystring"curlimages/curl"
job.image.tagstring"8.7.1"
job.imagePullSecretslist[]
job.labelsobject{}Labels to add to the job on top of the common chart labels
job.nodeSelectorobject{}NodeSelector to use for the job pod
job.podAnnotationsobject{}Annotations to add to the job pod
job.podLabelsobject{}Labels to add to the job pod on top of instance, managed-by and component. app.kubernetes.io/name is ignored: it would enrol job pods as Service endpoints
job.podSecurityContextobject{}podSecurityContext to use for the job pod
job.resourcesobject{}Resources to request for the job container
job.restartPolicystring"Never"
job.securityContextobject{}securityContext to use for the job container
job.serviceAccountNamestring""An override for the job service account
job.tolerationslist[]Tolerations to use for the job pod
job.ttlSecondsAfterFinishedstringnilSeconds to keep a finished job before the TTL controller removes it
job.volumeMountslist[]Raw yaml definition of volume mounts for the job container
job.volumeslist[]Raw yaml definition of volumes available to the job pod
keda.advancedobject{}
keda.cooldownPeriodint300Seconds to wait after the last trigger fired before scaling down
keda.enabledboolfalse
keda.fallbackobject{}
keda.maxReplicaCountint5
keda.minReplicaCountint2
keda.pollingIntervalint30Seconds between trigger evaluations
keda.triggerslist[]At least one trigger is required when keda is enabled
middlewareobject{"enabled":false,"existingMiddlewares":[],"labels":{},"sourceRange":[]}Whitelist Middleware definition
middleware.existingMiddlewareslist[]Names of existing middlewares, attached after the whitelist. Needs enabled: true
middleware.sourceRangelist[]CIDRs allowed to reach the route. A Middleware is created only when this is non-empty and middleware.enabled is true
nameOverridestring""
network-policiesobject{}Network policies configuration
nodeSelectorobject{}
podAnnotationsobject{}
podDisruptionBudgetobject{"annotations":{},"enabled":false,"maxUnavailable":null,"minAvailable":null,"unhealthyPodEvictionPolicy":null}PodDisruptionBudget. Set exactly one of minAvailable or maxUnavailable
podDisruptionBudget.unhealthyPodEvictionPolicystringnilAlwaysAllow lets a drain evict already-unhealthy pods. Needs Kubernetes 1.27
podMonitor.enabledboolfalse
podMonitor.labelsobject{}
podMonitor.podMetricsEndpointslist[]Endpoints to scrape. At least one is required when podMonitor is enabled
podSecurityContextobject{}
rawObjectlist[]Raw yaml definition used to deploy something that is not supported by this chart
replicaCountint1
resourcesobject{}
revisionHistoryLimitint3Number of superseded ReplicaSets or ControllerRevisions kept for rollbacks
securityContextobject{}
service.annotationsobject{}Annotations to add to the service
service.portslist[{"containerPort":80,"name":"http","port":80}]Service ports. containerPort defaults to port, protocol to TCP; appProtocol and nodePort are optional
service.sessionAffinitystring""Service sessionAffinity, e.g. ClientIP. Unset means None
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountServiceAccountTokenstringnilWhether pods using this service account get an API token mounted. Left unset to keep the Kubernetes default (true); set to false for workloads that never call the API server
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""
sideCarslist[]Raw yaml definition of sidecar containers
tolerationslist[]
traefik.apiVersionstring"traefik.io/v1alpha1"CRD API group used by the ingressRoute and middleware templates. Traefik v3 serves traefik.io/v1alpha1; set traefik.containo.us/v1alpha1 for Traefik v2
volumeslist[]Raw yaml definition of additional volumes

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy app with OpenTenant

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