-
Notifications
You must be signed in to change notification settings - Fork 7
/
ingress-application-ckad.yaml
79 lines (73 loc) · 1.23 KB
/
ingress-application-ckad.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
---
kind: Namespace
apiVersion: v1
metadata:
name: global-space
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp-food
namespace: global-space
spec:
replicas: 1
selector:
matchLabels:
app: webapp-food
template:
metadata:
labels:
app: webapp-food
spec:
containers:
- name: webapp-food
image: kodekloud/ecommerce:food
imagePullPolicy: Always
ports:
- containerPort: 8080
---
kind: Service
apiVersion: v1
metadata:
name: food-service
namespace: global-space
spec:
selector:
app: webapp-food
ports:
- port: 8080
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: default-backend
namespace: global-space
spec:
replicas: 1
selector:
matchLabels:
app: default-backend
template:
metadata:
labels:
app: default-backend
spec:
containers:
- name: simple-webapp
imagePullPolicy: Always
image: kodekloud/ecommerce:404
ports:
- containerPort: 8080
---
kind: Service
apiVersion: v1
metadata:
name: default-backend-service
namespace: global-space
spec:
selector:
app: default-backend
ports:
- port: 80
targetPort: 8080