cloudfoundry/cf-k8s-controllers

View on GitHub
helm/korifi/api/service.yaml

Summary

Maintainability
Test Coverage
apiVersion: v1
kind: Service
metadata:
  labels:
    app: korifi-api
  name: korifi-api-svc
  namespace: {{ .Release.Namespace }}
spec:
  ports:
  - name: web
    port: 443
    protocol: TCP
    targetPort: web
  selector:
    app: korifi-api
  type: ClusterIP

---
{{- if .Values.debug }}
apiVersion: v1
kind: Service
metadata:
  name: api-debug-port
  namespace: {{ .Release.Namespace }}
spec:
  ports:
    - name: debug-30052
      nodePort: 30052
      port: 30052
      protocol: TCP
      targetPort: 40000
  selector:
    app: korifi-api
  type: NodePort
{{- end }}