try fix ingress
This commit is contained in:
parent
ad22fe5f3b
commit
9e865dc87e
@ -22,7 +22,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- --api.insecure
|
- --api.insecure
|
||||||
- --providers.kubernetesingress
|
- --providers.kubernetesingress
|
||||||
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service
|
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
|
@ -2,9 +2,10 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: whoami
|
name: whoami
|
||||||
|
labels:
|
||||||
|
app: whoami
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
revisionHistoryLimit: 3
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: whoami
|
app: whoami
|
||||||
|
@ -3,10 +3,9 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: whoami
|
name: whoami
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- name: web
|
||||||
targetPort: 80
|
port: 80
|
||||||
nodePort: 31338
|
targetPort: web
|
||||||
selector:
|
selector:
|
||||||
app: whoami
|
app: whoami
|
||||||
|
Loading…
Reference in New Issue
Block a user