From 8a02533ccad307ef94e4429fbde4fd3d66f66c31 Mon Sep 17 00:00:00 2001 From: awudzins Date: Tue, 11 Feb 2020 17:22:50 +0100 Subject: Add Helm Chart Issue-ID: AAF-995 Signed-off-by: Adam Wudzinski Change-Id: I251cd76b34a4bca96056bddc50f272ecd9114ea2 --- .../aaf-cert-service/templates/deployment.yaml | 34 ++++++++++++++++++++++ .../helm/aaf-cert-service/templates/service.yaml | 11 +++++++ 2 files changed, 45 insertions(+) create mode 100644 certService/helm/aaf-cert-service/templates/deployment.yaml create mode 100644 certService/helm/aaf-cert-service/templates/service.yaml (limited to 'certService/helm/aaf-cert-service/templates') diff --git a/certService/helm/aaf-cert-service/templates/deployment.yaml b/certService/helm/aaf-cert-service/templates/deployment.yaml new file mode 100644 index 00000000..0b64d730 --- /dev/null +++ b/certService/helm/aaf-cert-service/templates/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Chart.Name }}-deployment +spec: + selector: + matchLabels: + app: {{ .Values.appLabel }} + replicas: {{ .Values.replicaCount }} + template: + metadata: + labels: + app: {{ .Values.appLabel }} + spec: + containers: + - name: aaf-cert-service + image: {{ .Values.repository }}/{{ .Values.image }} + imagePullPolicy: {{ .Values.pullPolicy }} + ports: + - containerPort: {{ .Values.containerPort }} + livenessProbe: + httpGet: + port: {{ .Values.containerPort }} + path: {{ .Values.healthcheck.path }} + initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.liveness.periodSeconds }} + readinessProbe: + httpGet: + port: {{ .Values.containerPort }} + path: {{ .Values.healthcheck.path }} + initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} + periodSeconds: {{ .Values.readiness.periodSeconds }} + resources: + {{ toYaml .Values.resources }} diff --git a/certService/helm/aaf-cert-service/templates/service.yaml b/certService/helm/aaf-cert-service/templates/service.yaml new file mode 100644 index 00000000..fba7e5fa --- /dev/null +++ b/certService/helm/aaf-cert-service/templates/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Chart.Name }}-service +spec: + type: {{ .Values.service.type }} + selector: + app: {{ .Values.appLabel }} + ports: + - protocol: TCP + port: {{ .Values.containerPort }} \ No newline at end of file -- cgit 1.2.3-korg