Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update outdated/deprecated taints in the examples #6562

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- image: registry.k8s.io/autoscaling/cluster-autoscaler:v1.26.2
name: cluster-autoscaler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- command:
- ./cluster-autoscaler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- command:
- ./cluster-autoscaler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- command:
- ./cluster-autoscaler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- image: registry.k8s.io/autoscaling/cluster-autoscaler:{{ ca_version }}
imagePullPolicy: Always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ spec:
- effect: NoSchedule
operator: "Equal"
value: "true"
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
nodeSelector:
kubernetes.io/role: master
kubernetes.io/role: control-plane
containers:
- image: registry.k8s.io/autoscaling/cluster-autoscaler:{{ ca_version }}
imagePullPolicy: Always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ spec:
spec:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
# Node affinity is used to force cluster-autoscaler to stick
# to the master node. This allows the cluster to reliably downscale
# to the macontrol-plane node. This allows the cluster to reliably downscale
# to zero worker nodes when needed.
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
- key: node-role.kubernetes.io/control-plane
operator: Exists
serviceAccountName: cluster-autoscaler
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ spec:
serviceAccountName: cluster-autoscaler
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
# Node affinity is used to force cluster-autoscaler to stick
# to the master node. This allows the cluster to reliably downscale
# to the control-plane node. This allows the cluster to reliably downscale
# to zero worker nodes when needed.
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- image: registry.k8s.io/autoscaling/cluster-autoscaler:latest # or your custom image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ spec:
app: cluster-autoscaler
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
node-role.kubernetes.io/control-plane: ""
securityContext:
runAsUser: 1001
tolerations:
- key: CriticalAddonsOnly
value: "True"
effect: NoSchedule
- key: dedicated
value: "master"
value: "control-plane"
effect: NoSchedule
serviceAccountName: cluster-autoscaler-account
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ image:
tag: v1.23.0

nodeSelector:
node-role.kubernetes.io/master: ""
node-role.kubernetes.io/control-plane: ""

tolerations:
- key: CriticalAddonsOnly
value: "True"
effect: NoSchedule
- key: dedicated
value: "master"
value: "control-plane"
effect: NoSchedule
- key: node-role.kubernetes.io/master
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule

cloudConfigPath: /etc/kubernetes/cloud-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ image:
tag: v1.23.0

nodeSelector:
node-role.kubernetes.io/master: ""
node-role.kubernetes.io/control-plane: ""

tolerations:
- key: CriticalAddonsOnly
value: "True"
effect: NoSchedule
- key: dedicated
value: "master"
value: "control-plane"
effect: NoSchedule
- key: node-role.kubernetes.io/master
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule

cloudConfigPath: "/etc/kubernetes/cloud-config"
Expand Down
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/tencentcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ spec:
serviceAccountName: kube-admin
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
key: node-role.kubernetes.io/control-plane
volumes:
- hostPath:
path: /etc/localtime
Expand Down
Loading