K3s-cluster/traefik-lb/service.yaml

33 lines
479 B
YAML
Raw Normal View History

2022-05-10 23:24:25 +00:00
apiVersion: v1
kind: Service
metadata:
name: traefi
spec:
type: LoadBalancer
selector:
app: traefik
ports:
- protocol: TCP
port: 80
name: web
targetPort: 80
- protocol: TCP
port: 8080
name: admin
targetPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: traefikudp
spec:
type: LoadBalancer
selector:
app: traefik
ports:
- protocol: UDP
port: 25565
name: udpep
targetPort: 25565