-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
93 lines (93 loc) · 1.79 KB
/
deployment.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# fizz
apiVersion: apps/v1
kind: Deployment
metadata:
name: fizz-dp
spec:
replicas: 2
selector:
matchLabels:
app: fizz
template:
metadata:
name: fizz
labels:
app: fizz
release: beta
spec:
containers:
- image: tarek5/fizz
imagePullPolicy: Always
name: fizz
ports:
- name: restapi
containerPort: 5000
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: 5000
env:
- name: HTTP_PORT
value: "5000"
- name: EMAIL_BACKEND
value: "mailgun"
- name: MAILGUN_DOMAIN
valueFrom:
secretKeyRef:
name: fizz-secrets
key: mailgun-domains
- name: MAILGUN_API_KEY
valueFrom:
secretKeyRef:
name: fizz-secrets
key: mailgun-api-key
---
apiVersion: v1
kind: Service
metadata:
name: fizz-svc
spec:
type: NodePort
selector:
app: fizz
ports:
- port: 9000
targetPort: restapi
nodePort: 30123
---
# prometheus
apiVersion: v1
kind: Deployment
metadata:
name: prometheus-dp
spec:
selector:
matchLabels:
app: prometheus
replicas: 1
template:
metadata:
name: prometheus-pod
labels:
app: prometheus
spec:
containers:
- name: prometheus-container
image: prom/prometheus
ports:
- name: prometheusport
containerPort: 9090
---
apiVersion: v1
kind: Service
metadata:
name: prometheus-svc
spec:
type: NodePort
selector:
app: prometheus
ports:
- port: 9090
targetPort: prometheusport
nodePort: 30124