-
Notifications
You must be signed in to change notification settings - Fork 6
/
k8s-centit-workorder.yaml
53 lines (53 loc) · 1.05 KB
/
k8s-centit-workorder.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
apiVersion: v1
kind: Service
metadata:
name: workorder
spec:
type: NodePort
ports:
- port: 8080
nodePort: 19000
selector:
app: workorder
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: workorder
spec:
replicas: 1
revisionHistoryLimit: 2
minReadySeconds: 4
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: workorder
template:
metadata:
labels:
app: workorder
spec:
containers:
- name: workorder
image: 172.29.0.13:8082/workorder:<BUILD_TAG>
imagePullPolicy: Always
volumeMounts:
- name: time-zone
mountPath: /etc/localtime
- name: tomcat-logs
mountPath: /usr/local/tomcat/logs
ports:
- containerPort: 8080
imagePullSecrets:
- name: registry-secret
volumes:
- name: time-zone
hostPath:
path: /etc/localtime
- name: tomcat-logs
hostPath:
path: /data/tomcat/logs