1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
apiVersion: v1 kind: Service metadata: name: {{ include "rest-api.fullname" . }} labels: {{- include "rest-api.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - port: 9999 targetPort: 8080 protocol: TCP name: http selector: {{- include "rest-api.selectorLabels" . | nindent 4 }}