Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2692 from rparsonsbb/master
Browse files Browse the repository at this point in the history
Adds nodeSelector to deployment templates for mixed OS clusters
  • Loading branch information
2opremio authored Dec 17, 2019
2 parents 67aae05 + 8db03a4 commit 1a8d1aa
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ spec:
dnsConfig:
{{ toYaml .Values.dnsConfig | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
nodeSelector:
beta.kubernetes.io/os: linux
{{- with .Values.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
Expand Down
3 changes: 2 additions & 1 deletion chart/flux/templates/memcached.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ spec:
{{ toYaml .Values.memcached.resources | indent 10 }}
securityContext:
{{ toYaml .Values.memcached.securityContext | indent 10 }}
{{- with .Values.memcached.nodeSelector }}
nodeSelector:
beta.kubernetes.io/os: linux
{{- with .Values.memcached.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.memcached.affinity }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/flux-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
labels:
name: flux
spec:
nodeSelector:
beta.kubernetes.io/os: linux
serviceAccountName: flux
volumes:
- name: git-key
Expand Down
2 changes: 2 additions & 0 deletions deploy/memcache-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
name: memcached
spec:
nodeSelector:
beta.kubernetes.io/os: linux
containers:
- name: memcached
image: memcached:1.5.20
Expand Down
8 changes: 4 additions & 4 deletions pkg/install/generated_templates.gogen.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/install/templates/flux-deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
labels:
name: flux
spec:
nodeSelector:
beta.kubernetes.io/os: linux
serviceAccountName: flux
volumes:
- name: git-key
Expand Down
2 changes: 2 additions & 0 deletions pkg/install/templates/memcache-dep.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
name: memcached
spec:
nodeSelector:
beta.kubernetes.io/os: linux
containers:
- name: memcached
image: memcached:1.5.20
Expand Down

0 comments on commit 1a8d1aa

Please sign in to comment.