20 lines
523 B
YAML
20 lines
523 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: haproxy
|
|
namespace: haproxy
|
|
spec:
|
|
type: ClusterIP
|
|
# Reached only by the external Traefik (re-encrypted HTTPRoute), so the
|
|
# peer address here is a Traefik pod, not the client. sessionAffinity is
|
|
# deliberately absent: keyed on ClientIP it would pin whole Traefik pods,
|
|
# not clients. Backend persistence rests on the per-backend SRVNAME cookie.
|
|
selector:
|
|
app: haproxy
|
|
ports:
|
|
- name: https
|
|
port: 443
|
|
protocol: TCP
|
|
targetPort: https
|