mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 20:02:42 +00:00
Draft create
This commit is contained in:
26
charts/frontend-node/templates/service.yaml
Executable file
26
charts/frontend-node/templates/service.yaml
Executable file
@@ -0,0 +1,26 @@
|
||||
{{- if or .Values.knativeDeploy .Values.canary.enabled }}
|
||||
{{- else }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
{{- if .Values.service.name }}
|
||||
name: {{ .Values.service.name }}
|
||||
{{- else }}
|
||||
name: {{ template "fullname" . }}
|
||||
{{- end }}
|
||||
labels:
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
||||
{{- if .Values.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.service.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.externalPort }}
|
||||
targetPort: {{ .Values.service.internalPort }}
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: {{ template "fullname" . }}
|
||||
{{- end }}
|
Reference in New Issue
Block a user