Mohammed Naser f7d0d3ac66 Added nodepool to charts
Depends-On: https://review.opendev.org/700222
Change-Id: I137953006abdbb3abc6d82b010d68df3ed0ef64d
2020-01-07 19:28:15 +00:00

43 lines
1.2 KiB
YAML

---
{{ if .Values.launcher.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "nodepool.fullname" . }}-launcher
labels:
{{- include "nodepool.launcher.labels" . | indent 4 }}
spec:
replicas: {{ .Values.launcher.replicas }}
selector:
matchLabels:
{{- include "nodepool.launcher.labels" . | indent 6 }}
template:
metadata:
labels:
{{- include "nodepool.launcher.labels" . | indent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
containers:
- name: launcher
image: zuul/nodepool-launcher:latest
env:
- name: OS_CLIENT_CONFIG_FILE
value: /etc/nodepool/clouds.yaml
volumeMounts:
- name: nodepool-config
mountPath: /etc/nodepool
volumes:
- name: nodepool-config
secret:
secretName: {{ include "nodepool.fullname" . }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{ end }}