diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index b964e55..14f8fbd 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -33,6 +33,11 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - containerPort: 8080 + hostPort: 8080 + protocol: TCP + name: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/templates/service.yaml b/charts/templates/service.yaml index c9ec6c0..1b5a178 100644 --- a/charts/templates/service.yaml +++ b/charts/templates/service.yaml @@ -7,9 +7,9 @@ metadata: spec: type: {{ .Values.service.type }} ports: -{{/* - port: {{ .Values.service.port }}*/}} -{{/* targetPort: http*/}} -{{/* protocol: TCP*/}} -{{/* name: http*/}} + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http selector: {{- include "charts.selectorLabels" . | nindent 4 }}