25 lines
556 B
YAML
25 lines
556 B
YAML
# infrastructure/traefik/traefik-service-lb.yaml
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: traefik
|
|
namespace: kube-system
|
|
annotations:
|
|
metallb.universe.tf/address-pool: communication-pool
|
|
spec:
|
|
type: LoadBalancer
|
|
loadBalancerClass: metallb
|
|
loadBalancerIP: 192.168.22.9
|
|
ports:
|
|
- name: web
|
|
port: 80
|
|
targetPort: web
|
|
protocol: TCP
|
|
- name: websecure
|
|
port: 443
|
|
targetPort: websecure
|
|
protocol: TCP
|
|
selector:
|
|
app.kubernetes.io/instance: traefik-kube-system
|
|
app.kubernetes.io/name: traefik
|