![Larry Rensing](/assets/img/avatar_default.png)
This adds a configmap-bin/etc hash value to the remainder of the manifests Change-Id: Icccadccfd1d68e89b452b1c722e28b7340d9164b
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: etcd
|
|
spec:
|
|
replicas: {{ .Values.resources.etcd.replicas }}
|
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
|
strategy:
|
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
|
rollingUpdate:
|
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
|
{{ end }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.hash" }}
|
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.hash" }}
|
|
labels:
|
|
app: etcd
|
|
spec:
|
|
nodeSelector:
|
|
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
|
|
containers:
|
|
- name: etcd
|
|
image: {{ .Values.images.etcd }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
command:
|
|
- etcd
|
|
- --listen-client-urls
|
|
- http://0.0.0.0:{{ .Values.network.port }}
|
|
- --advertise-client-urls
|
|
- http://{{ .Values.network.host }}:{{ .Values.network.port }}
|
|
ports:
|
|
- containerPort: {{ .Values.network.port }}
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: {{ .Values.network.port }}
|