...
1---
2apiVersion: v1
3kind: Service
4metadata:
5 name: example-auth
6spec:
7 type: ClusterIP
8 selector:
9 app: example-auth
10 ports:
11 - port: 3000
12 name: http-example-auth
13 targetPort: http-api
14---
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: example-auth
19spec:
20 replicas: 1
21 selector:
22 matchLabels:
23 app: example-auth
24 strategy:
25 type: RollingUpdate
26 template:
27 metadata:
28 labels:
29 app: example-auth
30 spec:
31 containers:
32 - name: example-auth
33 image: docker.io/datawire/ambassador-auth-service:2.0.0
34 livenessProbe:
35 httpGet:
36 path: /ready
37 port: 3000
38 initialDelaySeconds: 15
39 periodSeconds: 4
40 readinessProbe:
41 httpGet:
42 path: /ready
43 port: 3000
44 initialDelaySeconds: 15
45 periodSeconds: 4
46 ports:
47 - name: http-api
48 containerPort: 3000
49 resources:
50 limits:
51 cpu: "0.1"
52 memory: 100Mi
View as plain text