Files
HetznerTerra/infrastructure/charts/rancher/templates/service.yaml
T
micqdf b1eab6a0fa
Deploy Cluster / Terraform (push) Successful in 31s
Deploy Cluster / Ansible (push) Has been cancelled
fix: vendor Rancher chart for bootstrap
2026-04-25 23:08:26 +00:00

31 lines
737 B
YAML

apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ template "rancher.fullname" . }}
labels:
{{ include "rancher.labels" . | indent 4 }}
spec:
{{- /*
If service.type is not provided this attribute is ommitted and k8s default of ClusterIP is used.
*/}}
{{- if .Values.service.type }}
type: {{ .Values.service.type }}
{{- end }}
ports:
{{- if not (default .Values.service.disableHTTP false) }}
- port: 80
targetPort: 80
protocol: TCP
name: http
{{- end }}
- port: 443
targetPort: 444
protocol: TCP
name: https-internal
selector:
app: {{ template "rancher.fullname" . }}