caddy-ingress-controller

by mavimo

Helm chartv1.3.0App v0.2.1

A helm chart for the Caddy Kubernetes ingress controller

About this chart

caddy-ingress-controller

A helm chart for the Caddy Kubernetes ingress controller

TL;DR:

helm install my-release caddy-ingress-controller\
  --repo https://caddyserver.github.io/ingress/ \
  --namespace=caddy-system

Introduction

This chart bootstraps a caddy-ingress-deployment deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Helm 3+
  • Kubernetes 1.19+

Installing the Chart

helm repo add caddyserver https://caddyserver.github.io/ingress/
helm install my-release caddyserver/caddy-ingress-controller --namespace=caddy-system

Uninstalling the Chart

To uninstall my-release:

$ helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Tip: List all releases using helm list or start clean with helm uninstall my-release

Additional Configuration

Troubleshooting

Values

KeyTypeDefaultDescription
affinityobject{}
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"caddy/ingress"
image.tagstring"latest"
imagePullSecretslist[]
ingressController.config.acmeCAstring""
ingressController.config.acmeEABKeyIdstring""
ingressController.config.acmeEABMacKeystring""
ingressController.config.debugboolfalse
ingressController.config.emailstring""
ingressController.config.metricsbooltrue
ingressController.config.onDemandTLSboolfalse
ingressController.config.proxyProtocolboolfalse
ingressController.rbac.createbooltrue
ingressController.verboseboolfalse
ingressController.leaseIdstring""
ingressController.watchNamespacestring""
minikubeboolfalse
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podDisruptionBudget.maxUnavailablestringnil
podDisruptionBudget.minAvailableint1
podSecurityContextobject{}
replicaCountint2
resourcesobject{}
securityContext.allowPrivilegeEscalationbooltrue
securityContext.capabilities.add[0]string"NET_BIND_SERVICE"
securityContext.capabilities.drop[0]string"ALL"
securityContext.runAsGroupint0
securityContext.runAsUserint0
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring"caddy-ingress-controller"
tolerationslist[]

Deploy caddy-ingress-controller with OpenTenant

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