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