Migrate the cert-manager (#4)
Reviewed-on: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/pulls/4
This commit is contained in:
parent
bf7905e89b
commit
b98d782beb
3
bin/migrate.sh
Executable file
3
bin/migrate.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#kubectl get all,cm,secret,ing,role,clusterrole,rolebindings,clusterrolebindings -l app.kubernetes.io/managed-by=Helm -l app.kubernetes.io/instance=cert-manager -A --no-headers --output custom-columns="POD-NAME":.kind,"NAMESPACE":.metadata.name | while read -r var1 var2; do kubectl annotate $var1 $var2 "meta.helm.sh/release-namespace"="cert-manager" "meta.helm.sh/release-name"="cert-manager" --overwrite; done
|
||||||
|
|
||||||
|
kubectl get ValidatingWebhookConfiguration,all,cm,secret,ing,role,clusterrole,rolebindings,clusterrolebindings,MutatingWebhookConfiguration -l app.kubernetes.io/managed-by=Helm -l app.kubernetes.io/instance=cert-manager -A --no-headers --output custom-columns="POD-NAME":.kind,"NAMESPACE":.metadata.name,"ns":.metadata.namespace | while read -r var1 var2 var3; do kubectl annotate $var1 $var2 -n $var3 "meta.helm.sh/release-namespace"="cert-manager" "meta.helm.sh/release-name"="cert-manager"; done
|
@ -11,5 +11,10 @@ releases:
|
|||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
createNamespace: false
|
createNamespace: false
|
||||||
|
|
||||||
|
- <<: *cert-manager
|
||||||
|
installed: true
|
||||||
|
namespace: cert-manager
|
||||||
|
createNamespace: false
|
||||||
|
|
||||||
helmfiles:
|
helmfiles:
|
||||||
- path: {{.Environment.Name }}/helmfile.yaml
|
- path: {{.Environment.Name }}/helmfile.yaml
|
||||||
|
@ -30,6 +30,13 @@ templates:
|
|||||||
values:
|
values:
|
||||||
- common/values.{{ .Release.Name }}.yaml
|
- common/values.{{ .Release.Name }}.yaml
|
||||||
|
|
||||||
|
cert-manager: &cert-manager
|
||||||
|
name: cert-manager
|
||||||
|
chart: jetstack/cert-manager
|
||||||
|
version: 1.10.1
|
||||||
|
inherit:
|
||||||
|
- template: crd-management-hook
|
||||||
|
|
||||||
openvpn: &openvpn
|
openvpn: &openvpn
|
||||||
name: openvpn
|
name: openvpn
|
||||||
chart: allanger-charts/openvpn
|
chart: allanger-charts/openvpn
|
||||||
|
@ -4,3 +4,6 @@ repositories:
|
|||||||
url: https://kubernetes-sigs.github.io/metrics-server/
|
url: https://kubernetes-sigs.github.io/metrics-server/
|
||||||
- name: allanger-charts
|
- name: allanger-charts
|
||||||
url: https://allanger.github.io/allanger-charts
|
url: https://allanger.github.io/allanger-charts
|
||||||
|
- name: jetstack
|
||||||
|
url: https://charts.jetstack.io
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user