refactor: tolerations

This commit is contained in:
auricom
2021-07-30 09:43:09 +02:00
parent 0b9fedd63b
commit c920236777
7 changed files with 15 additions and 26 deletions

View File

@@ -248,7 +248,7 @@ spec:
scrape_interval: 60s scrape_interval: 60s
metrics_path: "/metrics" metrics_path: "/metrics"
static_configs: static_configs:
- targets: ["opnsense.${SECRET_CLUSTER_DOMAIN_ROOT}:9273"] - targets: ["opnsense.${SECRET_CLUSTER_DOMAIN_ROOT}.:9273"]
labels: labels:
app: "opnsense" app: "opnsense"
- job_name: "hass" - job_name: "hass"

View File

@@ -26,12 +26,9 @@ spec:
- "amd64" - "amd64"
serviceAccountName: system-upgrade serviceAccountName: system-upgrade
tolerations: tolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists" operator: "Exists"
- effect: NoExecute effect: "NoSchedule"
operator: Exists
- effect: NoSchedule
operator: Exists
upgrade: upgrade:
image: rancher/k3s-upgrade image: rancher/k3s-upgrade
channel: https://update.k3s.io/v1-release/channels/v1.21 channel: https://update.k3s.io/v1-release/channels/v1.21

View File

@@ -25,7 +25,7 @@ spec:
operator: Exists operator: Exists
- key: k3os.io/mode - key: k3os.io/mode
operator: DoesNotExist operator: DoesNotExist
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/control-plane
operator: NotIn operator: NotIn
values: values:
- "true" - "true"

View File

@@ -25,7 +25,8 @@ spec:
endTime: "5:00" endTime: "5:00"
timeZone: "Europe/Paris" timeZone: "Europe/Paris"
tolerations: tolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists" operator: "Exists"
effect: "NoSchedule"
metrics: metrics:
create: true create: true

View File

@@ -19,10 +19,9 @@ spec:
values: values:
master: master:
tolerations: tolerations:
- effect: NoExecute - key: "node-role.kubernetes.io/control-plane"
operator: Exists operator: "Exists"
- effect: NoSchedule effect: "NoSchedule"
operator: Exists
affinity: affinity:
nodeAffinity: nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
@@ -83,7 +82,6 @@ spec:
annotations: annotations:
configmap.reloader.stakater.com/reload: "nfd-worker-conf" configmap.reloader.stakater.com/reload: "nfd-worker-conf"
tolerations: tolerations:
- effect: "NoExecute" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
- effect: "NoSchedule"
operator: "Exists" operator: "Exists"
effect: "NoSchedule"

View File

@@ -21,12 +21,9 @@ spec:
csi: csi:
kubeletDirPath: /var/lib/kubelet kubeletDirPath: /var/lib/kubelet
pluginTolerations: pluginTolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists" operator: "Exists"
- effect: NoExecute effect: "NoSchedule"
operator: Exists
- effect: NoSchedule
operator: Exists
resources: resources:
requests: requests:
cpu: 100m cpu: 100m

View File

@@ -53,7 +53,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: nodeSelectorTerms:
- matchExpressions: - matchExpressions:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/control-plane"
operator: In operator: In
values: values:
- "true" - "true"
@@ -61,13 +61,9 @@ spec:
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"
operator: "Exists" operator: "Exists"
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists" operator: "Exists"
effect: "NoSchedule" effect: "NoSchedule"
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
containers: containers:
- name: system-upgrade-controller - name: system-upgrade-controller
image: rancher/system-upgrade-controller:v0.7.3 image: rancher/system-upgrade-controller:v0.7.3