kubedeploy

by branko

Helm chartv1.2.2App 1.2.2Apache-2.0

Generalized chart for deploying containerized application to Kubernetes clusters

About this chart


hide:

  • navigation
  • toc

kubedeploy

Homepage: https://kubedeploy.app/

Maintainers

NameEmailUrl
Branko Toic[email protected]https://www.sysbee.net

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add sysbee https://charts.sysbee.io/stable/sysbee
$ helm install my-release sysbee/kubedeploy

Requirements

Kubernetes: >=1.20.0-0

Values

KeyTypeDefaultDescription
additionalContainersobjectsee subvaluesadditionalContainers settings
additionalContainers.containerslistsee subvaluesSequential list of additionalContainers.
additionalContainers.containers[0].argsoptional[]Define custom arguments for additionalContainer
additionalContainers.containers[0].commandoptional["sh","-c","while true; do sleep 30; done;"]Define custom command for additionalContainer
additionalContainers.containers[0].healthcheckoptionalsee subvaluesDefine healthcheck probes for additionalContainer
additionalContainers.containers[0].healthcheck.enabledboolfalseEnable custom healthcheck probes for additionalContainer
additionalContainers.containers[0].healthcheck.probes.livenessProbeobject{}Define livenessProbe
additionalContainers.containers[0].healthcheck.probes.readinessProbeobject{}Define readinessProbe
additionalContainers.containers[0].healthcheck.probes.startupProbeobject{}Define startupProbe
additionalContainers.containers[0].portsoptional[]Define additionalContainer exposed ports see: containerPort
additionalContainers.containers[0].repositoryrequired"busybox"Define additionalContainer repository
additionalContainers.containers[0].resourcesoptional{}Define custom resources for this specific additionalContainer.
additionalContainers.containers[0].tagoptional"latest"Define additionalContainer image tag
additionalContainers.enabledboolfalseDefine if additionalContainers are enabled
additionalContainers.pullPolicyoptional"IfNotPresent"additionalContainers image pull policy
additionalContainers.resourcesoptional{}Define additionalContainers global resource requests and limits. Will be applied to all additionalContainers if more specific (per container) resource requests and limits are not defined
affinityobject{}Define Pod affinity disables automatic podAntiAffinity rules if defined.
autoscalingobjectsee subvaluesAutoscaling settings
autoscaling.behaviorobject{}HPA configurable scaling behavior see ref
autoscaling.enabledboolfalseEnable autoscaling. Works only with deploymentMode=Deployment
autoscaling.maxReplicasint10Maximum number of Pod replicas
autoscaling.minReplicasint1Minimum number of Pod replicas
autoscaling.targetCPUUtilizationPercentageint80Scaling target CPU utilization as percentage of resources.requests.cpu
autoscaling.targetMemoryUtilizationPercentageintnilScaling target memory utilization as percentage of resources.requests.mem
configMapslist[]Define a list of extra ConfigMap objects. See values.yaml or chart documentation for examples on syntax
configMapsHashboolfalseRedeploy Deployments and Statefulsets if deployed ConfigMaps content change.
cronjobspecobjectsee subvaluesCronjobspec settings
cronjobspec.argslist[]Define args for cronjob Starting from Kubedeploy version 1.2 you should start using image.args instead of cronjobspec.args. Values will be available as failsafe up to Kubedeploy 2.0 when they will be removed.
cronjobspec.backoffLimitint3Define job backoff limit, see reference
cronjobspec.commandlist[]Define command for cronjob Starting from Kubedeploy version 1.2 you should start using image.command instead of cronjobspec.command. Values will be available as failsafe up to Kubedeploy 2.0 when they will be removed.
cronjobspec.concurrencyPolicystring""Define concurrency policy options: Allow (default), Forbid or Replace, see reference
cronjobspec.failedJobsHistoryLimitint1Define number of failed Job logs to keep
cronjobspec.schedulestring"0 * * * *"Define cronjob schedule, for details see reference
cronjobspec.startingDeadlineSecondsoptional180Define deadline for starting the job, see reference
cronjobspec.successfulJobsHistoryLimitint3Define number of successful Job logs to keep
deploymentModestring"Deployment"Available deployment modes, currently supported: Deployment Statefulset Job Cronjob None
envlist[]Define environment variables for all containers in Pod. For reference see: env.
envFromlist[]Define environment variables from ConfigMap or Secret objects for all containers in Pod. For reference see envFrom secret example or envFrom configmap example
extraIngresslist[]list of extra Ingress objects to deploy. extraIngress requires additional name: parametar. see ingress values for required spec or values example.
extraObjectslist[]Create dynamic manifest via values (templated). See values.yaml or chart documentation for examples:
extraSecretslist[]Define a list of extra Secrets objects. See values.yaml or chart documentation for examples on syntax
extraVolumeMountslist[]Define extra volume mounts for containers See values.yaml or chart documentation for examples on syntax
fullnameOverridestring""Override full resource names instead of using calculated "releasename-chartname" default naming convention
healthcheckobjectsee subvaluesHealthcheck settings
healthcheck.disableAutomaticboolfalseDisable automatic healthcheck probes. Automatic probes will always create a HTTP healthcheck probe if container has port named http,
healthcheck.enabledboolfalseDefine custom healthcheck probes for container. Overrides automatic probes.
healthcheck.probes.livenessProbeobject{}Define livenessProbe
healthcheck.probes.readinessProbeobject{}Define readinessProbe
healthcheck.probes.startupProbeobject{}Define startupProbe
imageobjectsee subvaluesContainer image settings
image.argslist[]Define container custom arguments. Reference
image.commandlist[]Define container custom command. Reference
image.lifecycleobject{}Define container custom lifecycle hooks. More info
image.pullPolicystring"IfNotPresent"Default container pull policy
image.repositorystring"nginx"Define container repository
image.tagstring"latest"Define container image tag
image.terminationGracePeriodSecondsint30Define Pod terminationGracePeriodSeconds. Should be greater then expected run time of lifecycle hooks
imagePullSecretslist[]Define ImagePullSecrets
ingressobjectsee subvaluesIngress object settings.
ingress.annotationsobject{"cert-manager.io/cluster-issuer":"letsencrypt"}Additional Ingress annotations
ingress.classNamestring"haproxy"Ingress class name
ingress.enabledboolfalseEnable Ingres for release
ingress.hostslistsee subvaluesIngress host list.
ingress.hosts[0].hoststring, required""Define Ingress hostname
ingress.hosts[0].pathslist[]Ingress host paths see values.yaml or chart documentation for examples
ingress.pathTypestring"ImplementationSpecific"Default Ingress pathType
ingress.svcPortstringfirst port from service.portsDefine default Service port that will be targeted by Ingress.
ingress.tlslist[]Ingress TLS list. overrides any auto configured tls config created by withSSL. Allows for custom secretName and host list to be defined. For cases where you have pre-configured SSL stored as Kubernetes secret. If secret does not exist, new one will be created by cert-manager. see values.yaml or chart documentation for examples:
ingress.withSSLbooltrueDeploy Ingress object with SSL support. Automatically configures the Ingress tls spec with all the configured ingress.hosts in one Secret.
initContainersobjectsee subvaluesinitContainers settings
initContainers.containerslistsee subvaluesSequential list of initContainers.
initContainers.containers[0].argsoptional[]Define custom arguments for initContainer
initContainers.containers[0].commandoptional["sh","-c","exit 0"]Define custom command for initContainer
initContainers.containers[0].namerequiredbusybox-initDefine initContainer name
initContainers.containers[0].repositoryrequired"busybox"Define initContainer repository
initContainers.containers[0].resourcesoptional{}Define custom resources for this specific initContainer.
initContainers.containers[0].tagoptional"latest"Define initContainer image tag
initContainers.enabledboolfalseDefine if initContainers are enabled.
initContainers.pullPolicyoptional"IfNotPresent"initContainers image pull policy
initContainers.resourcesoptional{}Define initContainers global resource requests and limits. Will be applied to all initContainers if more specific (per container) resource requests and limits are not defined
jobspecobjectsee subvaluesjobspec settings
jobspec.argslist[]Define args for Job Starting from Kubedeploy version 1.2 you should start using image.args instead of jobspec.args. Values will be available as failsafe up to Kubedeploy 2.0 when they will be removed.
jobspec.backoffLimitint3Define Job backoff limit, see reference
jobspec.commandlist[]Define command for Job Starting from Kubedeploy version 1.2 you should start using image.command instead of jobspec.command. Values will be available as failsafe up to Kubedeploy 2.0 when they will be removed.
jobspec.parallelismint1Define Job paralelisam, see reference
jobspec.restartPolicystring"OnFailure"Define restart policy for jobs if deploymentMode=Job, see reference
jobspec.ttlSecondsAfterFinishedstring"300"Define Automatic Cleanup for Finished Jobs

|

Deploy kubedeploy with OpenTenant

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