-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjms-koko-deployment.yaml
55 lines (55 loc) · 1.31 KB
/
jms-koko-deployment.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
50
51
52
53
54
55
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: jms-koko
name: jms-koko
namespace: ops
spec:
replicas: 2
selector:
matchLabels:
app: jms-koko
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: jms-koko
spec:
containers:
- env:
- name: CORE_HOST
value: http://core.ops:8080
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: jumpserver-secret
key: secret-key
- name: BOOTSTRAP_TOKEN
valueFrom:
secretKeyRef:
name: jumpserver-secret
key: bootstrap-token
- name: REDIS_HOST
value: jumpserver.cache.amazonaws.com
- name: REDIS_PORT
value: "6379"
image: jumpserver/jms_koko:1.5.8
imagePullPolicy: IfNotPresent
name: jump-koko
ports:
- containerPort: 2222
protocol: TCP
- containerPort: 5000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}