caddy
Helm chartv0.0.14App 2.4.5MITVerified publisher
A powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
About this chart
caddy
A powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
Homepage: https://caddyserver.com/
TL;DR;
helm repo add skm https://charts.sagikazarmark.dev
helm install --generate-name --wait skm/caddy
## Limitations
The chart currently only works with a Caddyfile that exposes content over port 80.
HTTPS service support, metrics and a lot of other features are coming in later versions.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 1 | Number of replicas (pods) to launch. |
| image.repository | string | "caddy" | Name of the image repository to pull the container image from. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy for updating already existing images on a node. |
| image.tag | string | "" | Image tag override for the default value (chart appVersion). |
| imagePullSecrets | list | [] | Reference to one or more secrets to be used when pulling images (from private registries). |
| nameOverride | string | "" | A name in place of the chart name for app: labels. |
| fullnameOverride | string | "" | A name to substitute for the full names of resources. |
| config | string | nil | Caddy configuration file content. Accepts Caddyfile format by default. See adapter for other formats. |
| adapter | string | "caddyfile" | Caddyfile config adapter. Set it to empty string to use JSON. |
| watch | bool | false | Watch config file for changes and reload it automatically. |
| volumes | list | [] | Additional storage volumes. See the API reference for details. |
| volumeMounts | list | [] | Additional volume mounts. See the API reference for details. |
| envFrom | list | [] | Additional environment variables mounted from secrets or config maps. See the API reference for details. |
| env | object | {} | Additional environment variables passed directly to containers. See the API reference for details. |
| serviceAccount.create | bool | true | Enable service account creation. |
| serviceAccount.annotations | object | {} | Annotations to be added to the service account. |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| podAnnotations | object | {} | Annotations to be added to pods. |
| podSecurityContext | object | {} | Pod security context. See the API reference for details. |
| securityContext | object | {} | Container security context. See the API reference for details. |
| service.annotations | object | {} | Annotations to be added to the service. |
| service.type | string | "ClusterIP" | Kubernetes service type. |
| service.loadBalancerIP | string | nil | Only applies when the service type is LoadBalancer. Load balancer will get created with the IP specified in this field. |
| service.loadBalancerSourceRanges | list | [] | (list) If specified (and supported by the cloud provider), traffic through the load balancer will be restricted to the specified client IPs. Valid values are IP CIDR blocks. |
| service.port | int | 80 | Service port. |
| service.nodePort | int | nil | Service node port (when applicable). |
| service.externalTrafficPolicy | string | nil | Route external traffic to node-local or cluster-wide endoints. Useful for preserving the client source IP. |
| ingress.enabled | bool | false | Enable ingress. |
| ingress.className | string | "" | Ingress class name. |
| ingress.annotations | object | {} | Annotations to be added to the ingress. |
| ingress.hosts | list | See values.yaml. | Ingress host configuration. |
| ingress.tls | list | See values.yaml. | Ingress TLS configuration. |
| resources | object | No requests or limits. | Container resource requests and limits. See the API reference for details. |
| autoscaling | object | Disabled by default. | Autoscaling configuration (see values.yaml for details). |
| nodeSelector | object | {} | Node selector configuration. |
| tolerations | list | [] | Tolerations for node taints. See the API reference for details. |
| affinity | object | {} | Affinity configuration. See the API reference for details. |
| livenessProbe | object | {"httpGet":{"path":"/","port":"http"}} | Liveness probe See the API reference for details. |
| readinessProbe | object | {"httpGet":{"path":"/","port":"http"}} | Readiness probe See the API reference for details. |
Deploy caddy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has caddy 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 chartcaddy is pinned at v0.0.14 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