#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:
parent
6e543dbe6e
commit
02ad42a186
3 changed files with 46 additions and 3 deletions
43
helm-values/cert-manager.yaml
Normal file
43
helm-values/cert-manager.yaml
Normal 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"
|
6
scripts/03_install_cert_manager.sh → scripts/02_install_cert_manager.sh
Normal file → Executable file
6
scripts/03_install_cert_manager.sh → scripts/02_install_cert_manager.sh
Normal file → Executable file
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
helm repo add jetstack https://charts.jetstack.io
|
||||
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
|
Loading…
Reference in a new issue