split services fort traefik
This commit is contained in:
@ -1,7 +1,56 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: traefik-local
|
||||||
|
namespace: traefik
|
||||||
|
spec:
|
||||||
|
loadBalancerIP: 192.168.178.102
|
||||||
|
loadBalancerClass: metallb
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: traefik
|
||||||
|
ports:
|
||||||
|
# Local
|
||||||
|
- name: web-local
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: web-local
|
||||||
|
- name: websecure-local
|
||||||
|
port: 443
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: websecure-local
|
||||||
|
|
||||||
|
- name: dns
|
||||||
|
port: 53
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: 53
|
||||||
|
- name: traefik
|
||||||
|
port: 9000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: traefik
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik
|
name: traefik
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
spec:
|
spec:
|
||||||
|
loadBalancerIP: 192.168.178.102
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: traefik
|
||||||
|
ports:
|
||||||
|
# Front
|
||||||
|
- name: web-front
|
||||||
|
port: 8000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: web-front
|
||||||
|
- name: websecure-front
|
||||||
|
port: 8443
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: websecure-front
|
||||||
|
|
||||||
|
- name: dns
|
||||||
|
port: 53
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: 53
|
Reference in New Issue
Block a user