forked from ibm-ecm/container-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmis-deploy.yml
executable file
·146 lines (144 loc) · 3.86 KB
/
cmis-deploy.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
apiVersion: v1
kind: Service
metadata:
name: ecm-cmis-svc
spec:
ports:
- name: http
protocol: TCP
port: 9080
targetPort: 9080
- name: https
protocol: TCP
port: 9443
targetPort: 9443
selector:
app: cmis-cluster1
type: NodePort
sessionAffinity: ClientIP
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ecm-cmis
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: cmis-cluster1
spec:
imagePullSecrets:
- name: admin.registrykey
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- cmis-cluster1
topologyKey: "kubernetes.io/hostname"
containers:
- image: mycluster.icp:8500/default/cmis:latest
imagePullPolicy: Always
name: ecm-cmis
resources:
requests:
memory: 256Mi
cpu: 500m
limits:
memory: 512Mi
cpu: 1
ports:
- containerPort: 9080
name: http
- containerPort: 9443
name: https
env:
- name: LICENSE
value: "accept"
- name: CMIS_VERSION
value: "1.1"
- name: CE_URL
value: "http://9.30.57.31:30540/wsi/FNCEWS40MTOM"
- name: TZ
value: "Etc/UTC"
- name: JVM_HEAP_XMS
value: "512m"
- name: JVM_HEAP_XMX
value: "1024m"
- name: CMC_TIME_TO_LIVE
value: "3600000"
- name: CRC_TIME_TO_LIVE
value: "3600000"
- name: USER_CACHE_TIME_TO_LIVE
value: "28800000"
- name: CHECKOUT_COPYCONTENT
value: "True"
- name: DEFAULTMAXITEMS
value: "25"
- name: CVL_CACHE
value: "True"
- name: SECUREMETADATACACHE
value: "False"
- name: FILTERHIDDENPROPERTIES
value: "True"
- name: QUERYTIMELIMIT
value: "180"
- name: RESUMABLEQUERIESFORREST
value: "True"
- name: ESCAPEUNSAFESTRINGCHARACTERS
value: "False"
- name: MAXSOAPSIZE
value: "180"
- name: PRINTFULLSTACKTRACE
value: "False"
- name: FOLDERFIRSTSEARCH
value: "False"
- name: IGNOREROOTDOCUMENTS
value: "False"
- name: SUPPORTINGTYPEMUTABILITY
value: "False"
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
readinessProbe:
tcpSocket:
port: 9080
initialDelaySeconds: 90
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 9080
initialDelaySeconds: 180
periodSeconds: 5
volumeMounts:
- name: cmiscfgstore-pvc
mountPath: "/opt/ibm/wlp/usr/servers/defaultServer/configDropins/overrides"
subPath: configDropins/overrides
- name: cmislogstore-pvc
mountPath: "/opt/ibm/wlp/usr/servers/defaultServer/logs"
subPath: cmis/logs
volumes:
- name: cmiscfgstore-pvc
persistentVolumeClaim:
claimName: "cmis-icp-cfgstore"
- name: cmislogstore-pvc
persistentVolumeClaim:
claimName: "cmis-icp-logstore"