apiVersion: v1
kind: Service
metadata:
  name: hello-service
spec:
  type: ClusterIP
  ports:
    - name: https
      port: 443
    - name: http
      port: 80
  selector:
    app: hello
# NodePort approach
# apiVersion: v1
# kind: Service
# metadata:
#   name: {{ template "fullname" . }}
#   labels:
#     app: {{ template "name" . }}
#     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
#     release: {{ .Release.Name }}
#     heritage: {{ .Release.Service }}
# spec:
#   type: {{ .Values.service.type }}
#   ports:
#     - port: {{ .Values.service.externalPort }}
#       targetPort: {{ .Values.service.internalPort }}
#       protocol: TCP
#       name: {{ .Values.service.name }}
#   selector:
#     app: {{ template "name" . }}
#     release: {{ .Release.Name }}
