Commit 5f85618c authored by Waqar Ahmed's avatar Waqar Ahmed

Add port configuration to k8s pod

parent a88f0ad2
......@@ -48,3 +48,15 @@ livenessProbe:
periodSeconds: {{ .Values.periodSeconds }}
{{- end }}
{{- end }}
{{/*
Container Ports
*/}}
{{- define "containerPorts" }}
{{- if .Values.portForwardingList }}
ports:
{{- range $index, $config := .Values.portForwardingList }}
- containerPort: {{ $config.containerPort }}
{{- end }}
{{- end }}
{{- end }}
......@@ -62,6 +62,7 @@ containers:
{{- include "containerArgs" . | indent 2 }}
{{- include "containerEnvVariables" . | indent 2 }}
{{- include "containerLivenssProbe" . | indent 2 }}
{{- include "containerPorts" . | indent 2 }}
{{- include "volumeConfiguration" . }}
{{- include "dnsConfiguration" . }}
{{- end }}
......
......@@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{- include "ix-chart.fullname" . }}
name: {{ include "ix-chart.fullname" . }}
labels:
{{- include "ix-chart.labels" . | nindent 4 }}
spec:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment