问题
I have a Kubernetes cluster(Azure) with nginx-ingress, certmanager and one application, and I was wondering if there's a way of making the whole system as one single package so if there's any problem with the cluster it'd be easier to spin up another one.
My main idea is to make the manual configuration of nginx-ingress and certmanager automatic, but I'm not sure how it'd included in a helm chart, if possible. If not possible, is there a way(or tool) for minimising the manual configuration of environments when spinning it up?
Thanks in advance.
回答1:
You need to have a package of multiple helm charts here, likely as follows-
- Helm chart of your services
- Other dependency services helm charts (like redis, kafka etc)
- Nginx helm chart
- Then you can add cert-manager's helm chart which carries cluster issuer, certificate and it can either self create the TLS secret, by name mentioned by you ( or you can add your own secret)
- Then adding the ingress rule will place things inline for you.
Just package things up in helm chart .tgz formats
来源:https://stackoverflow.com/questions/59454550/adding-nginx-ingress-certmanager-as-dependency-in-helm-charts