-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-teste.yml
60 lines (56 loc) · 1.13 KB
/
app-teste.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
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: whoami5
# namespace: whoami5
labels:
allow.http: "false"
application: whoami5
spec:
replicas: 3
selector:
matchLabels:
application: whoami5
template:
metadata:
labels:
application: whoami5
spec:
containers:
- name: whoami5
image: jwilder/whoami
ports:
- containerPort: 8000
securityContext:
privileged: true
---
apiVersion: v1
kind: Service
metadata:
name: whoami5
# namespace: whoami5
spec:
type: ClusterIP
ports:
- port: 80 # Porta a ser exposta pelo SERVICE
targetPort: 8000 # Porta que a aplicação está rodando no POD
selector:
application: whoami5
---
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: whoami5
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: default
spec:
rules:
- host: app.<SEU_DOMINIO>
http:
paths:
- backend:
serviceName: whoami5
servicePort: 80