service.yaml 534 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
apiVersion: v1
kind: Service
metadata:
  namespace: "{{ .Values.k8sNamespace }}"
  name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-service"
  labels:
    app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
spec:
  ports:
    - port: {{ .Values.k8sPort }}
  selector:
    app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
    group: "{{ .Values.k8sGroupName }}"
    environment: "{{ .Values.k8sEnvironment }}"
  clusterIP: None