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
| Name | Url | |
|---|---|---|
| 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
| Key | Type | Default | Description |
|---|---|---|---|
| additionalContainers | object | see subvalues | additionalContainers settings |
| additionalContainers.containers | list | see subvalues | Sequential list of additionalContainers. |
| additionalContainers.containers[0].args | optional | [] | Define custom arguments for additionalContainer |
| additionalContainers.containers[0].command | optional | ["sh","-c","while true; do sleep 30; done;"] | Define custom command for additionalContainer |
| additionalContainers.containers[0].healthcheck | optional | see subvalues | Define healthcheck probes for additionalContainer |
| additionalContainers.containers[0].healthcheck.enabled | bool | false | Enable custom healthcheck probes for additionalContainer |
| additionalContainers.containers[0].healthcheck.probes.livenessProbe | object | {} | Define livenessProbe |
| additionalContainers.containers[0].healthcheck.probes.readinessProbe | object | {} | Define readinessProbe |
| additionalContainers.containers[0].healthcheck.probes.startupProbe | object | {} | Define startupProbe |
| additionalContainers.containers[0].ports | optional | [] | Define additionalContainer exposed ports see: containerPort |
| additionalContainers.containers[0].repository | required | "busybox" | Define additionalContainer repository |
| additionalContainers.containers[0].resources | optional | {} | Define custom resources for this specific additionalContainer. |
| additionalContainers.containers[0].tag | optional | "latest" | Define additionalContainer image tag |
| additionalContainers.enabled | bool | false | Define if additionalContainers are enabled |
| additionalContainers.pullPolicy | optional | "IfNotPresent" | additionalContainers image pull policy |
| additionalContainers.resources | optional | {} | 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 |
| affinity | object | {} | Define Pod affinity disables automatic podAntiAffinity rules if defined. |
| autoscaling | object | see subvalues | Autoscaling settings |
| autoscaling.behavior | object | {} | HPA configurable scaling behavior see ref |
| autoscaling.enabled | bool | false | Enable autoscaling. Works only with deploymentMode=Deployment |
| autoscaling.maxReplicas | int | 10 | Maximum number of Pod replicas |
| autoscaling.minReplicas | int | 1 | Minimum number of Pod replicas |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Scaling target CPU utilization as percentage of resources.requests.cpu |
| autoscaling.targetMemoryUtilizationPercentage | int | nil | Scaling target memory utilization as percentage of resources.requests.mem |
| configMaps | list | [] | Define a list of extra ConfigMap objects. See values.yaml or chart documentation for examples on syntax |
| configMapsHash | bool | false | Redeploy Deployments and Statefulsets if deployed ConfigMaps content change. |
| cronjobspec | object | see subvalues | Cronjobspec settings |
| cronjobspec.args | list | [] | 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.backoffLimit | int | 3 | Define job backoff limit, see reference |
| cronjobspec.command | list | [] | 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.concurrencyPolicy | string | "" | Define concurrency policy options: Allow (default), Forbid or Replace, see reference |
| cronjobspec.failedJobsHistoryLimit | int | 1 | Define number of failed Job logs to keep |
| cronjobspec.schedule | string | "0 * * * *" | Define cronjob schedule, for details see reference |
| cronjobspec.startingDeadlineSeconds | optional | 180 | Define deadline for starting the job, see reference |
| cronjobspec.successfulJobsHistoryLimit | int | 3 | Define number of successful Job logs to keep |
| deploymentMode | string | "Deployment" | Available deployment modes, currently supported: Deployment Statefulset Job Cronjob None |
| env | list | [] | Define environment variables for all containers in Pod. For reference see: env. |
| envFrom | list | [] | Define environment variables from ConfigMap or Secret objects for all containers in Pod. For reference see envFrom secret example or envFrom configmap example |
| extraIngress | list | [] | list of extra Ingress objects to deploy. extraIngress requires additional name: parametar. see ingress values for required spec or values example. |
| extraObjects | list | [] | Create dynamic manifest via values (templated). See values.yaml or chart documentation for examples: |
| extraSecrets | list | [] | Define a list of extra Secrets objects. See values.yaml or chart documentation for examples on syntax |
| extraVolumeMounts | list | [] | Define extra volume mounts for containers See values.yaml or chart documentation for examples on syntax |
| fullnameOverride | string | "" | Override full resource names instead of using calculated "releasename-chartname" default naming convention |
| healthcheck | object | see subvalues | Healthcheck settings |
| healthcheck.disableAutomatic | bool | false | Disable automatic healthcheck probes. Automatic probes will always create a HTTP healthcheck probe if container has port named http, |
| healthcheck.enabled | bool | false | Define custom healthcheck probes for container. Overrides automatic probes. |
| healthcheck.probes.livenessProbe | object | {} | Define livenessProbe |
| healthcheck.probes.readinessProbe | object | {} | Define readinessProbe |
| healthcheck.probes.startupProbe | object | {} | Define startupProbe |
| image | object | see subvalues | Container image settings |
| image.args | list | [] | Define container custom arguments. Reference |
| image.command | list | [] | Define container custom command. Reference |
| image.lifecycle | object | {} | Define container custom lifecycle hooks. More info |
| image.pullPolicy | string | "IfNotPresent" | Default container pull policy |
| image.repository | string | "nginx" | Define container repository |
| image.tag | string | "latest" | Define container image tag |
| image.terminationGracePeriodSeconds | int | 30 | Define Pod terminationGracePeriodSeconds. Should be greater then expected run time of lifecycle hooks |
| imagePullSecrets | list | [] | Define ImagePullSecrets |
| ingress | object | see subvalues | Ingress object settings. |
| ingress.annotations | object | {"cert-manager.io/cluster-issuer":"letsencrypt"} | Additional Ingress annotations |
| ingress.className | string | "haproxy" | Ingress class name |
| ingress.enabled | bool | false | Enable Ingres for release |
| ingress.hosts | list | see subvalues | Ingress host list. |
| ingress.hosts[0].host | string, required | "" | Define Ingress hostname |
| ingress.hosts[0].paths | list | [] | Ingress host paths see values.yaml or chart documentation for examples |
| ingress.pathType | string | "ImplementationSpecific" | Default Ingress pathType |
| ingress.svcPort | string | first port from service.ports | Define default Service port that will be targeted by Ingress. |
| ingress.tls | list | [] | 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.withSSL | bool | true | Deploy Ingress object with SSL support. Automatically configures the Ingress tls spec with all the configured ingress.hosts in one Secret. |
| initContainers | object | see subvalues | initContainers settings |
| initContainers.containers | list | see subvalues | Sequential list of initContainers. |
| initContainers.containers[0].args | optional | [] | Define custom arguments for initContainer |
| initContainers.containers[0].command | optional | ["sh","-c","exit 0"] | Define custom command for initContainer |
| initContainers.containers[0].name | required | busybox-init | Define initContainer name |
| initContainers.containers[0].repository | required | "busybox" | Define initContainer repository |
| initContainers.containers[0].resources | optional | {} | Define custom resources for this specific initContainer. |
| initContainers.containers[0].tag | optional | "latest" | Define initContainer image tag |
| initContainers.enabled | bool | false | Define if initContainers are enabled. |
| initContainers.pullPolicy | optional | "IfNotPresent" | initContainers image pull policy |
| initContainers.resources | optional | {} | 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 |
| jobspec | object | see subvalues | jobspec settings |
| jobspec.args | list | [] | 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.backoffLimit | int | 3 | Define Job backoff limit, see reference |
| jobspec.command | list | [] | 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.parallelism | int | 1 | Define Job paralelisam, see reference |
| jobspec.restartPolicy | string | "OnFailure" | Define restart policy for jobs if deploymentMode=Job, see reference |
| jobspec.ttlSecondsAfterFinished | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubedeploy is pinned at v1.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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