UNPKG

git-to-k8s

Version:

Small tool to automate the git to url flow on k8s

21 lines (20 loc) 544 B
apiVersion: v1 kind: Service metadata: name: {{ template "test.fullname" . }} labels: app: {{ template "test.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: {{ .Values.serviceType }} {{- if eq .Values.serviceType "LoadBalancer" }} loadBalancerIP: {{ .Values.testLoadBalancerIP }} {{- end }} ports: - name: http port: {{ .Values.testPort }} targetPort: http selector: app: {{ template "test.fullname" . }}