Commit d2f31473 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Update helm-templates, values and Chart

parent 275585c4
Pipeline #24985 passed with stages
in 3 minutes and 50 seconds
apiVersion: v2
name: fedora-deleter-service
description: A helm chart for the fedora deleter service.
description: A helm chart for the Fedora Deleter Service
type: application
version: 0.0.0
appVersion: 0.0.0
maintainers:
- name: Thomas Bernhart
email: t.bernhart@docuteam.ch
\ No newline at end of file
email: t.bernhart@docuteam.ch
k8sGroupId: dd
k8sGroupName: documents-delete
k8sEnvironment: prod
k8sReplicas: 1
k8sRequestsCpu: "0.5"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "1"
k8sLimitsMemory: "512Mi"
kafkaConfigs: prod-kafka-bootstrap-servers
fedoraConfigs: prod-fedora-server
fedoraCredentials: prod-fedora-admin-credentials
inputTopicName: mb-dd-deletes-prod
outputTopicName: void_topic
reportingTopicName: mb-dd-reporting-prod
k8sGroupId: dd
k8sGroupName: documents-delete
k8sEnvironment: test
k8sReplicas: 1
k8sRequestsCpu: "0.5"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "1"
k8sLimitsMemory: "512Mi"
kafkaConfigs: test-kafka-bootstrap-servers
fedoraConfigs: test-fedora-server
fedoraCredentials: test-fedora-admin-credentials
inputTopicName: mb-dd-deletes-test
outputTopicName: void_topic
reportingTopicName: mb-dd-reporting-test
deploymentName: ip-fedora-deleter-service
clientId: ip-fedora-deleter-service-app
kafkaConfigs: prod-kafka-bootstrap-servers
fedoraConfigs: fedora-admin-credentials
inputTopicName: import-process-test-delete
outputTopicName: void_topic
reportingTopicName: import-process-reporting
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.deploymentName }}-config"
namespace: memobase
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
namespace: "{{ .Values.k8sNamespace }}"
data:
CLIENT_ID: {{ .Values.clientId }}
TOPIC_IN: {{ .Values.inputTopicName }}
TOPIC_OUT: {{ .Values.outputTopicName }}
TOPIC_REPORTING: {{ .Values.reportingTopicName }}
CLIENT_ID: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}"
TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_OUT: "{{ .Values.outputTopicName }}"
TOPIC_REPORTING: "{{ .Values.reportingTopicName }}"
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.deploymentName }}-deployment
namespace: memobase
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}"
namespace: "{{ .Values.k8sNamespace }}"
labels:
jobType: "import-process-deployment"
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
replicas: 1
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
replicas: {{ .Values.k8sReplicas}}
template:
metadata:
labels:
app: {{ .Values.deploymentName }}
tier: import-process
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
spec:
restartPolicy: Always
containers:
- name: "{{ .Values.deploymentName }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
resources:
requests:
cpu: "0.5"
memory: "128Mi"
limits:
cpu: "1"
memory: "1Gi"
envFrom:
- secretRef:
name: "{{ .Values.fedoraConfigs }}"
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.deploymentName }}-config"
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-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:
- secretRef:
name: "{{ .Values.fedoraCredentials }}"
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.fedoraConfigs }}"
- configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
restartPolicy: Always
#image values
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/fedora-deleter-service"
image: "memoriav/memobase-2020/services/deletion-components/fedora-deleter-service"
tag: "latest"
deploymentName: fedora-deleter-service
clientId: fedora-deleter-service-app
k8sName: fedora-indexer
k8sNamespace: memobase
k8sGroupId: placeholder
k8sGroupName: placeholder
k8sEnvironment: placeholder
k8sReplicas: placeholder
k8sRequestsCpu: placeholder
k8sRequestsMemory: placeholder
k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder
kafkaConfigs: prod-kafka-bootstrap-servers
fedoraConfigs: fedora-admin-credentials
kafkaConfigs: placeholder
fedoraConfigs: placeholder
inputTopicName: import-process-test-delete
outputTopicName: void_topic
reportingTopicName: import-process-reporting
inputTopicName: placeholder
outputTopicName: placeholder
reportingTopicName: placeholder
Supports Markdown
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