-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy path2-whoareyou-all.yml
More file actions
45 lines (45 loc) · 767 Bytes
/
2-whoareyou-all.yml
File metadata and controls
45 lines (45 loc) · 767 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoareyou-deployment
spec:
replicas: 3
selector:
matchLabels:
app: whoareyou
template:
metadata:
labels:
app: whoareyou
spec:
containers:
- name: whoareyou-container
image: containous/whoami
---
apiVersion: v1
kind: Service
metadata:
name: whoareyou-service
spec:
ports:
- name: http
targetPort: 80
port: 80
selector:
app: whoareyou
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: whoareyou-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: node2
http:
paths:
- path: /
backend:
serviceName: whoareyou-service
servicePort: http