change traefik lb setup
This commit is contained in:
parent
e01631bc6f
commit
99610079e7
15
ip-mziesel-nl/ip-mziesel-nl-ingress.yaml
Normal file
15
ip-mziesel-nl/ip-mziesel-nl-ingress.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ip-mzisel-nl-ingress
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /ip
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ip-mziesel-nl
|
||||
port:
|
||||
name: web
|
@ -3,10 +3,8 @@ kind: Service
|
||||
metadata:
|
||||
name: ip-mziesel-nl
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 8080
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
nodePort: 31339
|
||||
selector:
|
||||
app: ip-mziesel-nl
|
||||
|
@ -1,25 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: traefik-dashboard-service
|
||||
name: traefik-service
|
||||
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 8080
|
||||
- name: web
|
||||
targetPort: web
|
||||
port: 80
|
||||
- name: dashbaord
|
||||
port: 8080
|
||||
targetPort: dashboard
|
||||
selector:
|
||||
app: traefik
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: traefik-web-service
|
||||
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- targetPort: web
|
||||
port: 80
|
||||
selector:
|
||||
app: traefik
|
||||
|
@ -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
|
||||
|
@ -10,6 +10,6 @@ spec:
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: whoami-traefik
|
||||
name: whoami
|
||||
port:
|
||||
name: web
|
||||
|
@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoami-nodeport
|
||||
name: whoami
|
||||
namespace: whoami
|
||||
spec:
|
||||
type: NodePort
|
||||
@ -11,29 +11,3 @@ spec:
|
||||
nodePort: 31338
|
||||
selector:
|
||||
app: whoami
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoami-loadbalancer
|
||||
namespace: whoami
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: whoami
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoami-traefik
|
||||
namespace: whoami
|
||||
spec:
|
||||
ports:
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: whoami
|
||||
|
Loading…
Reference in New Issue
Block a user