forked from hlxwell/k8s-beginner-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-v1.yml
61 lines (61 loc) · 1.31 KB
/
deploy-v1.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: echo-server-v1
labels:
name: echo-server
version: v1
spec:
replicas: 3
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
name: echo-server
app: echo-server
version: v1
spec:
securityContext:
runAsUser: 1000
restartPolicy: Always
imagePullSecrets:
- name: gcr-json-key
containers:
- image: gcr.io/bitsx-vc-dev-poc/echo-server:v1
imagePullPolicy: Always
name: echo-server
resources:
requests:
cpu: "20m"
memory: "55M"
limits:
cpu: "100m"
memory: "100M"
livenessProbe:
httpGet:
path: /
port: 1323
initialDelaySeconds: 3
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /
port: 1323
initialDelaySeconds: 3
timeoutSeconds: 10
env:
- name: ENVVARNAME
value: ENVVARVALUE
ports:
- containerPort: 1323
name: http
volumeMounts:
- mountPath: /data
name: data
volumes:
- name: data
emptyDir: {}