Commit 6a1b88f8 authored by Jens Langhammer's avatar Jens Langhammer

helm: only deploy tier0 and grpc if serve is enabled

parent 9cb1c41b
Pipeline #3876 passed with stage
in 1 minute and 40 seconds
{{- if .Values.ingress.serve.enabled -}}
apiVersion: apps/v1beta2
kind: Deployment
metadata:
......@@ -51,3 +52,4 @@ spec:
limits:
cpu: 100m
memory: 200M
{{- end }}
{{- if .Values.ingress.serve.enabled -}}
apiVersion: v1
kind: Service
metadata:
......@@ -19,3 +20,4 @@ spec:
app.kubernetes.io/name: {{ include "p2.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
k8s.p2.io/component: grpc
{{- end }}
{{- if .Values.ingress.serve.enabled -}}
apiVersion: apps/v1beta2
kind: Deployment
metadata:
......@@ -47,3 +48,4 @@ spec:
limits:
cpu: 200m
memory: 500M
{{- end }}
{{- if .Values.ingress.serve.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
......@@ -28,3 +29,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "p2.fullname" . }}-tier0
{{- end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment