Commit 1f740e65 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add basic helm chart

parent 1a6848f2
apiVersion: v2
name: group-reports-consumer
description: A service which consumes reports from the record sets & institutions services.
type: application
version: 0.0.0
appVersion: 0.0.0
maintainers:
- name: Jonas Waeber
email: jonas.waeber@unibas.ch
deploymentName: gi-reports-consumer-prod
kafkaConfigs: prod-kafka-bootstrap-servers
inputTopic: di-processed-reports-prod
reportingTopic: di-reporting-reports-prod
importApiEndpoint: import.
k8sEnvironment: prod
deploymentName: gi-reports-consumer-stage
kafkaConfigs: stage-kafka-bootstrap-servers
inputTopic: di-processed-reports-stage
reportingTopic: di-reporting-reports-stage
importApiEndpoint: stage.import.
k8sEnvironment: stage
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.deploymentName }}-app-config"
namespace: memobase
data:
API_ENDPOINT_URL: "{{ .Values.importApiEndpoint }}"
APPLICATION_ID: "{{ .Values.deploymentName }}-{{ .Values.k8sEnvironment }}-app"
TOPIC_IN: "{{ .Values.inputTopic }}"
TOPIC_OUT: "not-used"
TOPIC_PROCESS: "{{ .Values.reportingTopic }}"
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.deploymentName }}-deployment"
namespace: memobase
labels:
app: "{{ .Values.deploymentName }}-deployment"
spec:
selector:
matchLabels:
app: "{{ .Values.deploymentName }}-deployment"
replicas: 1
template:
metadata:
labels:
app: "{{ .Values.deploymentName }}-deployment"
environment: {{ .Values.k8sEnvironment }}
spec:
containers:
- name: "{{ .Values.deploymentName }}-container"
image: "{{.Values.registry}}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
resources:
requests:
cpu: "{{ .Values.k8sRequestsCpu }}"
memory: "{{ .Values.k8sRequestsMemory }}"
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
envFrom:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.deploymentName}}-app-config"
restartPolicy: Always
#image values
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service"
tag: "latest"
k8sEnvironment: none
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "256Mi"
k8sLimitsCpu: "1"
k8sLimitsMemory: "2Gi"
deploymentName: placeholder
kafkaConfigs: placeholder
inputTopic: placeholder
reportingTopic: placeholder
importApiEndpoint: placeholder
\ No newline at end of file
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