forked from pires/kubernetes-nats-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment-nats-tls.yaml
49 lines (49 loc) · 1.11 KB
/
deployment-nats-tls.yaml
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
44
45
46
47
48
49
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nats
labels:
component: nats
spec:
template:
metadata:
labels:
component: nats
spec:
containers:
- name: nats
image: quay.io/pires/docker-nats:0.8.1_1
imagePullPolicy: Always
volumeMounts:
- name: tls-volume
mountPath: /etc/nats/tls
env:
- name: EXTRA
value: -DV
- name: TLS
value: "true"
- name: TLSCERT
value: /etc/nats/tls/nats.pem
- name: TLSKEY
value: /etc/nats/tls/nats-key.pem
ports:
- containerPort: 4222
name: client
- containerPort: 6222
name: cluster
- containerPort: 8222
name: monitor
livenessProbe:
tcpSocket:
port: 8222
initialDelaySeconds: 10
timeoutSeconds: 5
readinessProbe:
tcpSocket:
port: 8222
initialDelaySeconds: 10
timeoutSeconds: 5
volumes:
- name: tls-volume
secret:
secretName: tls-nats