Example: generate k8s yaml file using helm (#42)

Co-authored-by: Marc-Antoine <embraser01@gmail.com>
This commit is contained in:
Kiura 2022-03-27 23:18:29 +02:00 committed by GitHub
parent 7f010460ae
commit 78e7d5f682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,24 @@ helm install \
caddy-ingress-controller 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 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 cluster to the external IP address of this `LoadBalancer` when the external IP
is provisioned by your cloud provider. is provisioned by your cloud provider.