This repository was archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathapp.yml
105 lines (105 loc) · 1.8 KB
/
app.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
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: v1
kind: Service
metadata:
name: name-service
spec:
selector:
app: name-pod
ports:
- port: 8080
---
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: name-rs
spec:
replicas: 1
selector:
matchLabels:
app: name-pod
template:
metadata:
labels:
app: name-pod
spec:
containers:
- name: name
image: arungupta/name-service:latest
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: greeter-service
spec:
selector:
app: greeter-pod
ports:
- port: 8080
---
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: greeter-rs
spec:
replicas: 1
selector:
matchLabels:
app: greeter-pod
template:
metadata:
labels:
app: greeter-pod
spec:
containers:
- name: name
image: arungupta/greeter-service:latest
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: webapp-service
spec:
selector:
app: webapp-pod
ports:
- name: web
port: 80
targetPort: 8080
type: LoadBalancer
---
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: webapp-rs
spec:
replicas: 1
selector:
matchLabels:
app: webapp-pod
template:
metadata:
labels:
app: webapp-pod
spec:
containers:
- name: webapp-pod
image: arungupta/webapp-service:latest
env:
- name: NAME_SERVICE_HOST
value: name-service
- name: NAME_SERVICE_PORT
value: "8080"
- name: NAME_SERVICE_PATH
value: /
- name: GREETER_SERVICE_HOST
value: greeter-service
- name: GREETER_SERVICE_PORT
value: "8080"
- name: GREETER_SERVICE_PATH
value: /
ports:
- containerPort: 8080