mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 21:41:17 +00:00
22 lines
507 B
YAML
22 lines
507 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Release.Name }}-haproxy
|
|
labels:
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
spec:
|
|
type: {{ ternary "LoadBalancer" "ClusterIP" .Values.external }}
|
|
{{- if .Values.external }}
|
|
externalTrafficPolicy: Local
|
|
allocateLoadBalancerNodePorts: false
|
|
{{- end }}
|
|
selector:
|
|
app: {{ .Release.Name }}-haproxy
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: http
|