Init helm chart
This commit is contained in:
21
chart/templates/endpoint.yaml
Normal file
21
chart/templates/endpoint.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- $name := include "external-services.name" . -}}
|
||||
|
||||
{{- range .Values.services -}}
|
||||
{{- $endpointName := printf "%s-%s" $name .name }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: {{ $endpointName }}
|
||||
labels:
|
||||
{{- include "external-services.labels" $ | nindent 4 }}
|
||||
subsets:
|
||||
- addresses:
|
||||
{{- range .addresses }}
|
||||
- ip: {{ . }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: {{ .portName }}
|
||||
port: {{ .targetPort }}
|
||||
protocol: {{ .protocol }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user