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
metrics_path: "/metrics"
static_configs:
- targets: ["opnsense.${SECRET_CLUSTER_DOMAIN_ROOT}:9273"]
- targets: ["opnsense.${SECRET_CLUSTER_DOMAIN_ROOT}.:9273"]
labels:
app: "opnsense"
- job_name: "hass"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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