Нема описа

backend-svc.yaml 1002B

123456789101112131415161718192021
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ template "shuffle.backend.name" . }}
  5. namespace: {{ include "common.names.namespace" . | quote }}
  6. {{- $serviceLabels := include "common.tplvalues.merge" (dict "values" (list .Values.backend.service.labels .Values.commonLabels) "context" .) }}
  7. labels: {{- include "shuffle.backend.labels" (dict "customLabels" $serviceLabels "context" $) | nindent 4 }}
  8. {{- if .Values.commonAnnotations }}
  9. annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
  10. {{- end }}
  11. spec:
  12. type: ClusterIP
  13. ports:
  14. - name: http
  15. port: {{ .Values.backend.containerPorts.http }}
  16. targetPort: http
  17. protocol: TCP
  18. appProtocol: http
  19. {{- $podLabels := include "common.tplvalues.merge" (dict "values" (list .Values.backend.podLabels .Values.commonLabels) "context" .) }}
  20. selector: {{- include "shuffle.backend.matchLabels" (dict "customLabels" $podLabels "context" $) | nindent 4 }}