rancher-partner-charts/charts/kasten/k10/7.5.1/templates/ocp-plugin-service.yaml

24 lines
705 B
YAML

{{- if eq (include "k10.isOpenShift" .) "true" -}}
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.openshift.io/serving-cert-secret-name: {{ template "k10.openShiftConsolePluginTLSCertName" . }}
name: {{ template "k10.openShiftConsolePluginName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "helm.labels" . | indent 4 }}
component: {{ template "k10.openShiftConsolePluginName" . }}
spec:
ports:
- name: tcp
protocol: TCP
port: 9443
targetPort: 9443
selector:
{{ include "k10.common.matchLabels" . | indent 4 }}
component: {{ template "k10.openShiftConsolePluginName" . }}
type: ClusterIP
sessionAffinity: None
{{- end -}}