Cleanup deprecated labels beta.kubernetes.io/arch and beta.kubernetes.io/os (#5964)

This commit is contained in:
Florian Ruynat 2020-04-17 14:51:06 +02:00 committed by GitHub
parent ea8b799ff0
commit 83fe607f62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 21 additions and 24 deletions

View file

@ -101,7 +101,7 @@ metadata:
name: nginx-azuredisk name: nginx-azuredisk
spec: spec:
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
containers: containers:
- image: nginx - image: nginx
name: nginx-azuredisk name: nginx-azuredisk

View file

@ -84,7 +84,7 @@ ingress_nginx_enabled: false
# ingress_nginx_host_network: false # ingress_nginx_host_network: false
ingress_publish_status_address: "" ingress_publish_status_address: ""
# ingress_nginx_nodeselector: # ingress_nginx_nodeselector:
# beta.kubernetes.io/os: "linux" # kubernetes.io/os: "linux"
# ingress_nginx_tolerations: # ingress_nginx_tolerations:
# - key: "node-role.kubernetes.io/master" # - key: "node-role.kubernetes.io/master"
# operator: "Equal" # operator: "Equal"

View file

@ -26,7 +26,7 @@ spec:
spec: spec:
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
serviceAccountName: coredns serviceAccountName: coredns
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master

View file

@ -38,7 +38,7 @@ spec:
supplementalGroups: [ 65534 ] supplementalGroups: [ 65534 ]
fsGroup: 65534 fsGroup: 65534
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
tolerations: tolerations:
- effect: NoSchedule - effect: NoSchedule
operator: Equal operator: Equal

View file

@ -20,7 +20,7 @@ spec:
- effect: NoSchedule - effect: NoSchedule
operator: Exists operator: Exists
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
containers: containers:
- name: netchecker-agent - name: netchecker-agent
image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}" image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}"

View file

@ -18,7 +18,7 @@ spec:
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
priorityClassName: {% if netcheck_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}} priorityClassName: {% if netcheck_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
tolerations: tolerations:
- effect: NoSchedule - effect: NoSchedule

View file

@ -17,7 +17,7 @@ spec:
app.kubernetes.io/name: aws-ebs-csi-driver app.kubernetes.io/name: aws-ebs-csi-driver
spec: spec:
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
serviceAccount: ebs-csi-controller-sa serviceAccount: ebs-csi-controller-sa
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
tolerations: tolerations:

View file

@ -17,7 +17,7 @@ spec:
app.kubernetes.io/name: aws-ebs-csi-driver app.kubernetes.io/name: aws-ebs-csi-driver
spec: spec:
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
hostNetwork: true hostNetwork: true
priorityClassName: system-node-critical priorityClassName: system-node-critical
tolerations: tolerations:

View file

@ -17,7 +17,7 @@ spec:
hostNetwork: true hostNetwork: true
serviceAccountName: csi-azuredisk-controller-sa serviceAccountName: csi-azuredisk-controller-sa
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
tolerations: tolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/master"

View file

@ -15,7 +15,7 @@ spec:
spec: spec:
hostNetwork: true hostNetwork: true
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
priorityClassName: system-node-critical priorityClassName: system-node-critical
containers: containers:
- name: liveness-probe - name: liveness-probe

View file

@ -1,5 +1,5 @@
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: alb-ingress name: alb-ingress

View file

@ -1,5 +1,5 @@
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: alb-ingress name: alb-ingress

View file

@ -37,9 +37,6 @@ The following **Mandatory Command** is required for all deployments.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
``` ```
!!! tip
If you are using a Kubernetes version previous to 1.14, you need to change `kubernetes.io/os` to `beta.kubernetes.io/os` at line 217 of [mandatory.yaml](https://github.com/kubernetes/ingress-nginx/blob/master/deploy/static/mandatory.yaml#L217), see [Labels details](https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/).
### Provider Specific Steps ### Provider Specific Steps
There are cloud provider specific yaml files. There are cloud provider specific yaml files.

View file

@ -3,7 +3,7 @@ ingress_nginx_namespace: "ingress-nginx"
ingress_nginx_host_network: false ingress_nginx_host_network: false
ingress_publish_status_address: "" ingress_publish_status_address: ""
ingress_nginx_nodeselector: ingress_nginx_nodeselector:
beta.kubernetes.io/os: "linux" kubernetes.io/os: "linux"
ingress_nginx_tolerations: [] ingress_nginx_tolerations: []
ingress_nginx_insecure_port: 80 ingress_nginx_insecure_port: 80
ingress_nginx_secure_port: 443 ingress_nginx_secure_port: 443

View file

@ -20,7 +20,7 @@ spec:
k8s-app: calico-kube-controllers k8s-app: calico-kube-controllers
spec: spec:
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
hostNetwork: true hostNetwork: true
serviceAccountName: calico-kube-controllers serviceAccountName: calico-kube-controllers
tolerations: tolerations:

View file

@ -12,7 +12,7 @@ spec:
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
priorityClassName: system-node-critical priorityClassName: system-node-critical
containers: containers:
- name: haproxy - name: haproxy

View file

@ -12,7 +12,7 @@ spec:
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
priorityClassName: system-node-critical priorityClassName: system-node-critical
containers: containers:
- name: nginx-proxy - name: nginx-proxy

View file

@ -48,7 +48,7 @@ spec:
cluster-autoscaler.kubernetes.io/safe-to-evict: 'true' cluster-autoscaler.kubernetes.io/safe-to-evict: 'true'
spec: spec:
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux kubernetes.io/os: linux
hostNetwork: true hostNetwork: true
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master

View file

@ -94,11 +94,11 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: nodeSelectorTerms:
- matchExpressions: - matchExpressions:
- key: beta.kubernetes.io/os - key: kubernetes.io/os
operator: In operator: In
values: values:
- linux - linux
- key: beta.kubernetes.io/arch - key: kubernetes.io/arch
operator: In operator: In
values: values:
- amd64 - amd64

View file

@ -21,7 +21,7 @@ spec:
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
nodeSelector: nodeSelector:
beta.kubernetes.io/arch: amd64 kubernetes.io/arch: amd64
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master
operator: Exists operator: Exists

View file

@ -1 +1 @@
{"spec":{"template":{"spec":{"nodeSelector":{"beta.kubernetes.io/os":"linux"}}}}} {"spec":{"template":{"spec":{"nodeSelector":{"kubernetes.io/os":"linux"}}}}}