mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-11 04:28:28 +00:00
Example: generate k8s yaml file using helm (#42)
Co-authored-by: Marc-Antoine <embraser01@gmail.com>
This commit is contained in:
parent
7f010460ae
commit
78e7d5f682
19
README.md
19
README.md
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user