-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeployment.yaml
43 lines (43 loc) · 1.06 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: k8s-api-service
name: k8s-api-service
namespace: dev
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: k8s-api-service
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app.kubernetes.io/instance: k8s-api-service
spec:
containers:
- image: k8s-api-service
imagePullPolicy: Always
name: app
ports:
- containerPort: 8080
name: api
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /api/v1/health_check
port: api
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 100m
memory: 128Mi