Merge pull request #117 from songjiaxun/azurestack

fix: limit node server to deploy only on Linux nodes
This commit is contained in:
Kubernetes Prow Robot 2020-12-22 03:00:26 -08:00 committed by GitHub
commit f5b513f1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,8 @@ spec:
spec:
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
kubernetes.io/os: linux
containers:
- name: liveness-probe
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"

View File

@ -17,6 +17,8 @@ spec:
spec:
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
kubernetes.io/os: linux
containers:
- name: liveness-probe
image: k8s.gcr.io/sig-storage/livenessprobe:v2.1.0

View File

@ -26,7 +26,8 @@ spec:
labels:
name: deployment-nfs
spec:
containers:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: deployment-nfs
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine

View File

@ -323,6 +323,7 @@ func NewTestPod(c clientset.Interface, ns *v1.Namespace, command string) *TestPo
GenerateName: "nfs-volume-tester-",
},
Spec: v1.PodSpec{
NodeSelector: map[string]string{"kubernetes.io/os": "linux"},
Containers: []v1.Container{
{
Name: "volume-tester",
@ -446,6 +447,7 @@ func NewTestDeployment(c clientset.Interface, ns *v1.Namespace, command string,
Labels: map[string]string{"app": selectorValue},
},
Spec: v1.PodSpec{
NodeSelector: map[string]string{"kubernetes.io/os": "linux"},
Containers: []v1.Container{
{
Name: "volume-tester",