From 78e7d5f68295a30f945a4e6e50abc5c33c220ac2 Mon Sep 17 00:00:00 2001 From: Kiura Date: Sun, 27 Mar 2022 23:18:29 +0200 Subject: [PATCH] Example: generate k8s yaml file using helm (#42) Co-authored-by: Marc-Antoine --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01dc617..8b704fc 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,24 @@ helm install \ caddy-ingress-controller ``` -The helm chart create a service of type `LoadBalancer` in the `caddy-system` +Or + +2. Generate kubernetes yaml file. +```sh +git clone https://github.com/caddyserver/ingress.git +cd ingress + +# generate the yaml file +helm template mycaddy ./charts/caddy-ingress-controller \ + --namespace=caddy-system \ + --set image.tag=latest \ + > mycaddy.yaml + +# apply the file +kubectl apply -f mycaddy.yaml +``` + +This will create a service of type `LoadBalancer` in the `caddy-system` namespace on your cluster. You'll want to set any DNS records for accessing this cluster to the external IP address of this `LoadBalancer` when the external IP is provisioned by your cloud provider.