-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapi-deployment.yaml
56 lines (56 loc) · 1.21 KB
/
api-deployment.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
54
55
56
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: default
name: api
spec:
replicas: 2
strategy:
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
name: api
labels:
name: api
spec:
containers:
- image: gcr.io/sample-gke-api/api:latest
name: api
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /
port: 8081
readinessProbe:
httpGet:
path: /
port: 8081
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 40m
memory: 128Mi
ports:
- containerPort: 8081
name: http
- image: gcr.io/endpoints-release/endpoints-runtime:1.5
name: esp
args: [
"-p", "8080",
"-a", "0.0.0.0:8081",
"-s", "api.endpoints.sample-gke-api.cloud.goog",
"-v", "<your-endpoints-service-deploy-id>",
]
resources:
requests:
cpu: 20m
memory: 32Mi
limits:
cpu: 40m
memory: 64Mi
ports:
- containerPort: 8080