12factor
by mjpitz
Easily deploy any application that conforms to the 12-factor application patterns. Kubernetes helps provide a platform for many of the 12factor patterns. This chart attempts to help streamline the management of configuration, log streams, and execution of administrative tasks.
About this chart
12factor
Easily deploy any application that conforms to the 12-factor application patterns. Kubernetes helps provide a platform for many of the 12factor patterns. This chart attempts to help streamline the management of configuration, log streams, and execution of administrative tasks.
Maintainers
| Name | Url | |
|---|---|---|
| Mya Pitzeruse | https://mya.sh |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| deployment.affinity | object | {} | Specify affinity and anti-affinity rules for this deployment. Useful for placing two deployments on the same set of nodes or spreading them across different zones and regions. |
| deployment.annotations | object | {} | Annotations are added to pods within the deployment. |
| deployment.application.args | list | [] | Specify arguments that should be passed to the entrypoint. |
| deployment.application.checks.liveness | object | {} | Periodically checks if the container is alive and running. The container will be restarted if this check fails. [documentation] |
| deployment.application.checks.readiness | object | {} | Periodically check if the container for service readiness. This container will be removed from service endpoints if this check fails. [documentation] |
| deployment.application.checks.startup | object | {} | Used to indicate that the container has started successfully. If specified, no other checks are run until this completes successfully. [documentation] |
| deployment.application.command | list | [] | Specify the entrypoint command for the container. |
| deployment.application.env | object/list | nil | Environment variables provided to the application. |
| deployment.application.envFrom | list | [] | Load additional environment variables from secrets or config maps. |
| deployment.application.ports | list | [] | Expose ports on the container. |
| deployment.application.resources | object | {} | The resources to request for this container. |
| deployment.application.securityContext | object | {} | Specify the security context to assign to the application container. |
| deployment.application.volumeMounts | list | [] | Mount configuration files into the container. |
| deployment.autoscaling.enabled | bool | false | Enable autoscaling for this deployment. [documentation] |
| deployment.autoscaling.maxReplicas | int | 100 | The maximum number of replicas to deploy. |
| deployment.autoscaling.metrics | list | [] | Autoscale using custom metrics. This allows the deployment to autoscale based on metrics related to Kubernetes resources as well as metrics that have nothing to do with kubernetes. For more information, see the docs. [documentation] |
| deployment.autoscaling.minReplicas | int | 1 | The minimum number of replicas to deploy. |
| deployment.autoscaling.targetCPUUtilizationPercentage | string | nil | Autoscale using CPU utilization as an indicator. |
| deployment.autoscaling.targetMemoryUtilizationPercentage | string | nil | Autoscale using memory as an indicator. |
| deployment.imagePullSecrets | list | [] | Specify additional secret names containing registry credentials that should be added to this deployment. |
| deployment.nodeSelector | object | {} | Deploy this application to a specific set of nodes. Useful for selecting nodes with specific hardware characteristics (like GPU support). |
| deployment.replicaCount | int | 1 | The number of pods to deploy. |
| deployment.sidecars | list | [] | |
| deployment.tasks | list | [] | Enumerate tasks that the application needs to perform. These are defined using CronJobs and use the same image as the application in the deployment configuration block. |
| deployment.tolerations | list | [] | Configure taints that this deployment is willing to tolerate. Useful for running on a dedicated pool of nodes. |
| deployment.topologySpreadConstraints | list | [] | Specify how pods |
Deploy 12factor with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 12factor 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 chart12factor is pinned at v24.1.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