Markus Pesch
64e21d43ab
All checks were successful
continuous-integration/drone/push Build is passing
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
{{- with .Values.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "athens-proxy.labels" . | nindent 4 }}
|
|
name: {{ include "athens-proxy.fullname" . }}
|
|
spec:
|
|
{{- with .Values.service.externalIPs }}
|
|
externalIPs:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- if .Values.service.externalTrafficPolicy }}
|
|
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
|
{{- end }}
|
|
{{- if and .Values.service.loadBalancerClass (eq .Values.service.type "LoadBalancer") }}
|
|
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
|
|
{{- end }}
|
|
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
|
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
|
{{- end }}
|
|
{{- with .Values.service.loadBalancerSourceRanges }}
|
|
loadBalancerSourceRanges:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: {{ .Values.service.targetPort }}
|
|
protocol: TCP
|
|
name: {{ .Values.service.name }}
|
|
selector:
|
|
{{- include "athens-proxy.selectorLabels" . | nindent 4 }}
|