#0000 - Refactor cert-manager setup and add Helm values file

Rename and reorganize scripts and configuration files for clarity. Updated `02_install_cert_manager.sh` to reference a new Helm values file for better configurability. Introduced nodeSelector and tolerations in `helm-values/cert-manager.yaml` for targeted deployment.
This commit is contained in:
Guillaume "B.B." Van Hemmen 2024-12-27 14:50:43 +01:00
parent 6e543dbe6e
commit 02ad42a186
3 changed files with 46 additions and 3 deletions

View file

@ -0,0 +1,43 @@
# Global settings for nodeSelector and tolerations
nodeSelector:
com.van-hemmen.role: gateway
com.van-hemmen.hosting: ovh
tolerations:
- key: "com.van-hemmen.role"
operator: "Equal"
value: "gateway"
effect: "NoSchedule"
# startupapicheck specific settings
startupapicheck:
nodeSelector:
com.van-hemmen.role: gateway
com.van-hemmen.hosting: ovh
tolerations:
- key: "com.van-hemmen.role"
operator: "Equal"
value: "gateway"
effect: "NoSchedule"
# Cainjector specific settings
cainjector:
nodeSelector:
com.van-hemmen.role: gateway
com.van-hemmen.hosting: ovh
tolerations:
- key: "com.van-hemmen.role"
operator: "Equal"
value: "gateway"
effect: "NoSchedule"
# Webhook specific settings
webhook:
nodeSelector:
com.van-hemmen.role: gateway
com.van-hemmen.hosting: ovh
tolerations:
- key: "com.van-hemmen.role"
operator: "Equal"
value: "gateway"
effect: "NoSchedule"

View file

@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
set -ex set -e
helm repo add jetstack https://charts.jetstack.io helm repo add jetstack https://charts.jetstack.io
helm repo update helm repo update
kubectl create namespace cert-manager kubectl create namespace cert-manager || true
helm install cert-manager jetstack/cert-manager --namespace cert-manager \ helm install cert-manager jetstack/cert-manager --namespace cert-manager -f helm-values/cert-manager.yaml \
--set installCRDs=true --set installCRDs=true