Skip to content

Commit

Permalink
Update beta.kubernetes.io/os to kubernetes.io/os
Browse files Browse the repository at this point in the history
Starting with K8s 1.18, beta.kubernetes.io/os is removed.
kubernetes.io/os is supported from K8s 1.14.

Fixes antrea-io#361
  • Loading branch information
antoninbas committed Mar 20, 2020
1 parent 244b831 commit 82a4c93
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build/yamls/antrea-ipsec.yml
Expand Up @@ -388,7 +388,7 @@ spec:
subPath: antrea-controller.conf
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-cluster-critical
serviceAccountName: antrea-controller
tolerations:
Expand Down Expand Up @@ -588,7 +588,7 @@ spec:
name: host-depmod
readOnly: true
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-node-critical
serviceAccountName: antrea-agent
tolerations:
Expand Down
4 changes: 2 additions & 2 deletions build/yamls/antrea.yml
Expand Up @@ -379,7 +379,7 @@ spec:
subPath: antrea-controller.conf
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-cluster-critical
serviceAccountName: antrea-controller
tolerations:
Expand Down Expand Up @@ -547,7 +547,7 @@ spec:
name: host-depmod
readOnly: true
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
priorityClassName: system-node-critical
serviceAccountName: antrea-agent
tolerations:
Expand Down
5 changes: 1 addition & 4 deletions build/yamls/base/agent.yml
Expand Up @@ -26,10 +26,7 @@ spec:
- effect: NoSchedule
operator: Exists
nodeSelector:
# Note: beta.kubernetes.io/os is targeted for removal in K8s v1.18, if running Antrea with 1.18
# or higher uncomment the following line and remove beta.kubernetes.io/os.
#kubernetes.io/os: linux
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
serviceAccountName: antrea-agent
initContainers:
- name: install-cni
Expand Down
5 changes: 1 addition & 4 deletions build/yamls/base/controller.yml
Expand Up @@ -44,10 +44,7 @@ spec:
component: antrea-controller
spec:
nodeSelector:
# Note: beta.kubernetes.io/os is targeted for removal in K8s v1.18, if running Antrea with 1.18
# or higher uncomment the following line and remove beta.kubernetes.io/os.
#kubernetes.io/os: linux
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
hostNetwork: true
priorityClassName: system-cluster-critical
tolerations:
Expand Down

0 comments on commit 82a4c93

Please sign in to comment.