forked from kahootali/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
92 lines (91 loc) · 1.65 KB
/
app.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
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
---
# Source: application/templates/backend-service.yaml
apiVersion: v1
kind: Service
metadata:
name: backend
spec:
type: ClusterIP
selector:
app: dice
tier: backend
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
# Source: application/templates/frontend-service.yaml
apiVersion: v1
kind: Service
metadata:
name: dice-frontend
spec:
type: NodePort
selector:
app: dice
tier: frontend
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 31000
---
# Source: application/templates/backend-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dice
tier: backend
annotations:
lab: helm
name: dice-backend
spec:
replicas: 1
selector:
matchLabels:
app: dice
tier: backend
template:
metadata:
labels:
app: dice
tier: backend
spec:
containers:
- name: dice-backend
image: "kahootali/python-backend"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: tcp
---
# Source: application/templates/frontend-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dice
tier: frontend
annotations:
lab: helm
name: dice-frontend
spec:
replicas: 1
selector:
matchLabels:
app: dice
tier: frontend
template:
metadata:
labels:
app: dice
tier: frontend
spec:
containers:
- name: dice-frontend
image: "kahootali/node-frontend"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: tcp