| #{{ if not .Values.disableConsulConsulServer }} |
| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| labels: |
| app: consul-server |
| name: consul-server |
| namespace: "{{ .Values.nsPrefix }}" |
| spec: |
| replicas: {{ .Values.consulServerReplicas }} |
| selector: |
| matchLabels: |
| app: consul-server |
| template: |
| metadata: |
| labels: |
| app: consul-server |
| name: consul-server |
| spec: |
| containers: |
| - image: "{{ .Values.consulserverRegistry }}" |
| 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 }}"] |
| name: consul-server |
| #{{ end }} |