-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.kube.yml
55 lines (55 loc) · 1.09 KB
/
.kube.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
apiVersion: v1
kind: Service
metadata:
name: "{{.app}}"
spec:
selector:
app: "{{.app}}"
tier: "{{.tier}}"
ports:
- port: 80
protocol: TCP
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: "{{.app}}"
tier: "{{.tier}}"
name: "{{.app}}"
spec:
replicas: 1
selector:
matchLabels:
app: "{{.app}}"
tier: frontend
template:
metadata:
labels:
app: "{{.app}}"
tier: frontend
spec:
containers:
- image: "{{.image}}"
# imagePullPolicy: IfNotPresent
name: "{{.app}}"
ports:
- containerPort: 80
protocol: TCP
# volumeMounts:
# - mountPath: /usr/src/api/config.js
# name: projects-config
# subPath: config.js
terminationGracePeriodSeconds: 30
# volumes:
# - name: projects-config
# configMap:
# name: projects-config
minReadySeconds: 20
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 25%
type: RollingUpdate