Skip to content

Commit

Permalink
[stable/spinnaker]helm#1899 Added nodeSelector for spinnaker (helm#2946)
Browse files Browse the repository at this point in the history
* added nodeSelector for spinnaker components and its dependencies

* Update Chart.yaml

* updated the jenkings-config.yaml file
  • Loading branch information
el-sai authored and k8s-ci-robot committed Jan 5, 2018
1 parent 74e50f9 commit 13d264f
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/spinnaker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
name: spinnaker
version: 0.3.9
version: 0.3.10
appVersion: 1.1.0
home: http://spinnaker.io/
sources:
Expand Down
10 changes: 9 additions & 1 deletion stable/spinnaker/templates/configmap/jenkins-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ data:
<org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud plugin="kubernetes@0.8">
<name>kubernetes</name>
<templates>
{{- if .Values.jenkins.Agent.Enabled }}
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
<name>jnlp</name>
<image>{{ .Values.jenkins.Agent.Image }}:{{ .Values.jenkins.Agent.ImageTag }}</image>
Expand All @@ -38,7 +39,13 @@ data:
<remoteFs>/home/jenkins</remoteFs>
<instanceCap>2147483647</instanceCap>
<label></label>
<nodeSelector></nodeSelector>
<nodeSelector>
{{- $local := dict "first" true }}
{{- range $key, $value := .Values.jenkins.Agent.NodeSelector }}
{{- if not $local.first }},{{- end }}
{{- $key }}={{ $value }}
{{- $_ := set $local "first" false }}
{{- end }}</nodeSelector>
<resourceRequestCpu>{{ .Values.jenkins.Agent.Cpu }}</resourceRequestCpu>
<resourceRequestMemory>{{ .Values.jenkins.Agent.Memory }}</resourceRequestMemory>
<resourceLimitCpu>{{ .Values.jenkins.Agent.Cpu }}</resourceLimitCpu>
Expand All @@ -57,6 +64,7 @@ data:
<annotations/>
<imagePullSecrets/>
</org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
{{- end -}}
</templates>
<serverUrl>https://kubernetes.default</serverUrl>
<skipTlsVerify>false</skipTlsVerify>
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/clouddriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: clouddriver
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.clouddriver }}
name: clouddriver
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/deck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: deck
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.deck }}
name: deck
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/echo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: echo
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.echo }}
name: echo
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/front50.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: front50
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.front50 }}
name: front50
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: gate
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.gate }}
name: gate
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/igor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: igor
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.igor }}
name: igor
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/orca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: orca
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.orca }}
name: orca
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/deployments/rosco.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: {{ template "fullname" . }}
component: rosco
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
containers:
- image: {{ .Values.images.rosco }}
name: rosco
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/create-bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
app: {{ template "fullname" . }}
component: minio
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
restartPolicy: OnFailure
containers:
- name: post-install-job
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/delete-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
app: {{ template "fullname" . }}
component: spinnaker
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
restartPolicy: OnFailure
volumes:
- name: kubectl
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
annotations:
"helm.sh/hook": test-success
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 4 }}
{{- end }}
initContainers:
- name: "test-framework"
image: "dduportal/bats:0.4.0"
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/upload-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
app: {{ template "fullname" . }}
component: jenkins
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
restartPolicy: OnFailure
volumes:
- name: jenkins-jobs
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/upload-run-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
app: {{ template "fullname" . }}
component: jenkins
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
restartPolicy: OnFailure
volumes:
- name: jenkins-jobs
Expand Down
4 changes: 4 additions & 0 deletions stable/spinnaker/templates/hooks/upload-run-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
app: {{ template "fullname" . }}
component: jenkins
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
restartPolicy: OnFailure
volumes:
- name: jenkins-jobs
Expand Down
9 changes: 9 additions & 0 deletions stable/spinnaker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,16 @@ resources:
cpu: 1000m
memory: 1280Mi

# Node labels for pod assignment
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
# nodeSelector to provide to each of the Spinnaker components
nodeSelector: {}

# Redis password to use for the in-cluster redis service
# Redis is not exposed publically
redis:
redisPassword: password
nodeSelector: {}

# Minio access/secret keys for the in-cluster S3 usage
# Minio is not exposed publically
Expand All @@ -93,6 +99,7 @@ minio:
serviceType: ClusterIP
accessKey: spinnakeradmin
secretKey: spinnakeradmin
nodeSelector: {}

gcs:
enabled: false
Expand All @@ -109,7 +116,9 @@ jenkins:
Memory: "512Mi"
ServiceType: ClusterIP
CustomConfigMap: true
NodeSelector: {}

Agent:
Cpu: "500m"
Memory: "512Mi"
NodeSelector: {}

0 comments on commit 13d264f

Please sign in to comment.