Skip to content

Commit

Permalink
Example: generate k8s yaml file using helm
Browse files Browse the repository at this point in the history
For those who don't use helm, it is useful to know how to generate YAML file so they can inspect and apply it
  • Loading branch information
Kiura authored Jul 4, 2020
1 parent 4299818 commit 748910e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,27 @@ Caddy Ingress Controller adhere to the following steps:
caddy-ingress-controller
```

The helm chart create a service of type `LoadBalancer` in the `caddy-system`
Or

2. Generate kubernetes yaml file.
```sh
# clone this repo
git clone git@github.com:caddyserver/ingress.git;

# cd to the repository folder
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.
Expand Down

0 comments on commit 748910e

Please sign in to comment.