-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployments.yaml
50 lines (50 loc) · 1.22 KB
/
k8s-deployments.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sequence-web-back
labels:
app: web
spec:
selector:
matchLabels:
export_cdh: Export_CDH
replicas: 4
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
template:
metadata:
labels:
app: web
export_cdh: Export_CDH
spec:
containers:
- name: mongo
image: mongo
ports:
- name: mongo
containerPort: 27017
protocol: TCP
- name: sqc-back
image: superwonso/sequence-web-dev_sqc-back
imagePullSecrets:
name: regcred # regcred is the name of the secret
ports:
- name: sqc-back
containerPort: 8879
protocol: TCP
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- web
topologyKey: kubernetes.io/hostname
#=203.255.92.192