fix: ensure critical addons come up when the node is tainted
Rather than taint on `node-role.kubernetes.io/master=true:NoSchedule`, we check for `CriticalAddonsOnly=true:NoSchedule` and taint on that.
This commit is contained in:
28
plugins/scheduler-k3s/templates/cert-manager.yaml
Normal file
28
plugins/scheduler-k3s/templates/cert-manager.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
installCRDs: true
|
||||
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
webhook:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
cainjector:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
startupapicheck:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
41
plugins/scheduler-k3s/templates/longhorn.yaml
Normal file
41
plugins/scheduler-k3s/templates/longhorn.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
defaultSettings:
|
||||
taintToleration: "CriticalAddonsOnly=true:NoSchedule"
|
||||
|
||||
longhornManager:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
longhornDriver:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
longhornUI:
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
longhornConversionWebhook:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
longhornAdmissionWebhook:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
|
||||
longhornRecoveryBackend:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Equal
|
||||
value: "true"
|
||||
effect: "NoSchedule"
|
||||
16
plugins/scheduler-k3s/templates/traefik-config.yaml
Normal file
16
plugins/scheduler-k3s/templates/traefik-config.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: traefik-crd
|
||||
namespace: kube-system
|
||||
spec:
|
||||
bootstrap: true
|
||||
---
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: kube-system
|
||||
spec:
|
||||
bootstrap: true
|
||||
Reference in New Issue
Block a user