Skip to content

Commit

Permalink
Update service.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tripathishikha1 authored Jul 4, 2024
1 parent 66023ca commit 87461a0
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions charts/microservice/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "app.servicename" . }}
name: {{ include "app.fullname" . }}-svc
labels:
{{- include "app.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
protocol: {{ .Values.service.protocol }}
name: http
selector:
{{- include "app.selectorLabels" . | nindent 4 }}
ports:
- name: http
port: {{ .Values.servicePorts.http }}
targetPort: http
protocol: TCP
- name: https
port: {{ .Values.servicePorts.https }}
targetPort: https
protocol: TCP
- name: custom-port
port: {{ .Values.servicePorts.custom }}
targetPort: custom-port
protocol: TCP
type: {{ .Values.service.type }}

0 comments on commit 87461a0

Please sign in to comment.