change nodeSelector label from deprecated beta.kubernetes.io/os and arch to kubernetes.io prefix (#7138)
This commit is contained in:
parent
387df0ee1f
commit
02213d6e07
3 changed files with 6 additions and 6 deletions
|
@ -339,7 +339,7 @@ spec:
|
|||
readOnlyRootFilesystem: true
|
||||
hostNetwork: true
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: linux
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/os: linux
|
||||
serviceAccountName: speaker
|
||||
terminationGracePeriodSeconds: 2
|
||||
tolerations:
|
||||
|
@ -390,7 +390,7 @@ spec:
|
|||
- all
|
||||
readOnlyRootFilesystem: true
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: linux
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/os: linux
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
|
|
|
@ -118,7 +118,7 @@ spec:
|
|||
periodSeconds: 7
|
||||
failureThreshold: 5
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: "linux"
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/os: "linux"
|
||||
ovn4nfv-k8s-plugin: ovn-control-plane
|
||||
volumes:
|
||||
- name: host-run-ovs
|
||||
|
@ -214,7 +214,7 @@ spec:
|
|||
cpu: {{ ovn_controller_cpu_limit }}
|
||||
memory: {{ ovn_controller_memory_limit }}
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: "linux"
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/os: "linux"
|
||||
volumes:
|
||||
- name: host-modules
|
||||
hostPath:
|
||||
|
|
|
@ -482,7 +482,7 @@ spec:
|
|||
spec:
|
||||
hostNetwork: true
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/arch: amd64
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/arch: amd64
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
effect: NoSchedule
|
||||
|
@ -556,7 +556,7 @@ spec:
|
|||
hostNetwork: true
|
||||
hostPID: true
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/arch: amd64
|
||||
{{ 'beta.' if kube_version is version('v1.18.0', '<') }}kubernetes.io/arch: amd64
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
effect: NoSchedule
|
||||
|
|
Loading…
Reference in a new issue