service-nginx-hue.yaml 339 B

12345678910111213141516171819
  1. {{- if .Values.balancer.enabled -}}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: hue-balancer
  6. spec:
  7. type: NodePort
  8. # type: LoadBalancer
  9. selector:
  10. pod: hue
  11. sessionAffinity: ClientIP
  12. sessionAffinityConfig:
  13. clientIP:
  14. timeoutSeconds: 86400
  15. ports:
  16. - protocol: TCP
  17. port: 80
  18. targetPort: 80
  19. {{- end -}}