blob: 8d780f0e5868d3627bb04220f26bbc440c96ca46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#{{ if not .Values.disableConsulConsulAgent }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: consul-agent
name: consul-agent
namespace: "{{ .Values.nsPrefix }}"
spec:
replicas: {{ .Values.consulAgentReplicas }}
selector:
matchLabels:
app: consul-agent
template:
metadata:
labels:
app: consul-agent
name: consul-agent
spec:
containers:
- image: "{{ .Values.consulagentRegistry }}"
command: ["/usr/local/bin/docker-entrypoint.sh"]
args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}"]
name: consul-server
volumeMounts:
- mountPath: /consul/config
name: consul-agent-config
- mountPath: /consul/scripts
name: consul-agent-scripts-config
- mountPath: /consul/certs
name: consul-agent-certs-config
volumes:
- configMap:
name: consul-agent-configmap
name: consul-agent-config
- configMap:
name: consul-agent-scripts-configmap
defaultMode: 0755
name: consul-agent-scripts-config
- secret:
secretName: consul-agent-certs-secret
name: consul-agent-certs-config
#{{ end }}
|