blob: a2feb9f6a3d8b5e63feaa3ad7be3e3eb8d9c9265 [file] [log] [blame]
#{{ if not .Values.disableConsulConsulServer }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: consul-server
name: consul-server
namespace: "{{ .Values.nsPrefix }}-consul"
spec:
replicas: 3
selector:
matchLabels:
app: consul-server
template:
metadata:
labels:
app: consul-server
name: consul-server
spec:
containers:
- image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}"
command: ["/usr/local/bin/docker-entrypoint.sh"]
args: ["agent","-server","-client","0.0.0.0","-enable-script-checks","-bootstrap-expect=3","-ui","-join","consul-server.{{ .Values.nsPrefix }}-consul"]
name: consul-server
volumeMounts:
- mountPath: /consul/config
name: consul-server-config
volumes:
- hostPath:
path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-server-config
name: consul-server-config
#{{ end }}