-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-cafe.yml
62 lines (62 loc) · 1.34 KB
/
azure-cafe.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
62
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-cafe
namespace: default
spec:
selector:
matchLabels:
app: azure-cafe
replicas: 2
template:
metadata:
name: azure-cafe
labels:
app: azure-cafe
spec:
containers:
- name: azure-cafe
image: azurecaferegistryreza.azurecr.io/azure-cafe:v1
imagePullPolicy: Always
ports:
- containerPort: 8080
- containerPort: 8443
- containerPort: 9990
readinessProbe:
httpGet:
path: /health/ready
port: 9990
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 1
livenessProbe:
httpGet:
path: /health/live
port: 9990
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 1
env:
- name: APPLICATION_INSIGHTS_KEY
valueFrom:
configMapKeyRef:
name: application-insights-key
key: APPLICATION_INSIGHTS_KEY
---
apiVersion: v1
kind: Service
metadata:
name: azure-cafe
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 8080
- name: https
port: 443
targetPort: 8443
selector:
app: azure-cafe