Skip to content

Commit

Permalink
import new deployment patch
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Mar 17, 2024
1 parent f7d2e9f commit 8a02620
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup_https/deploymentPatch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Patch deployments to make cert-manager pods spawn in master node
# See https://github.com/zonca/jupyterhub-deploy-kubernetes-jetstream/issues/52

DEPLOYMENTS=( "cert-manager" "cert-manager-cainjector" "cert-manager-webhook" )

for DEPLOYMENT in ${DEPLOYMENTS[@]}
do
kubectl patch deployment -n cert-manager $DEPLOYMENT --patch-file ./deploymentPatch.yml
done
13 changes: 13 additions & 0 deletions setup_https/deploymentPatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# deploymentPatch.yml referenced in deploymentPatch.sh
---
spec:
template:
spec:
nodeSelector:
#"node-role.kubernetes.io/master": ""
"node-role.kubernetes.io/control-plane": ""
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"

0 comments on commit 8a02620

Please sign in to comment.