operator-service.yaml 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{ if and .Values.deploy.operator (not (and .Values.developer.externalOperatorIp .Values.developer.externalOperatorPort)) }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. {{- with .Values.operator.service.annotations }}
  6. annotations:
  7. {{- toYaml . | nindent 4 }}
  8. {{- end }}
  9. namespace: {{ .Release.Namespace }}
  10. name: {{ .Release.Name }}
  11. spec:
  12. type: ClusterIP
  13. selector:
  14. app: {{ .Release.Name }}
  15. ports:
  16. - name: https
  17. protocol: TCP
  18. port: 443
  19. targetPort: https
  20. {{ else }}
  21. apiVersion: v1
  22. kind: Service
  23. metadata:
  24. namespace: {{ .Release.Namespace }}
  25. name: {{ .Release.Name }}
  26. spec:
  27. ports:
  28. - port: 443
  29. targetPort: {{ .Values.developer.externalOperatorPort }}
  30. ---
  31. kind: Endpoints
  32. apiVersion: v1
  33. metadata:
  34. namespace: {{ .Release.Namespace }}
  35. name: {{ .Release.Name }}
  36. subsets:
  37. - addresses:
  38. - ip: "{{ .Values.developer.externalOperatorIp }}"
  39. ports:
  40. - port: {{ .Values.developer.externalOperatorPort }}
  41. {{ end }}