Verified Commit 811249a4 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

add helm charts

parent 0b8e5e7f
apiVersion: v2
name: dummy-app-char
description: A helm chart for the Dummy App
type: application
version: 0.0.0
appVersion: 0.0.0
maintainers:
- name: Sebastian Schüpbach
email: sebastian.schuepbach@unibas.ch
tag: "latest"
k8sEnvironment: "prod"
k8sReplicas: 1
k8sRequestsCpu: "0.05"
k8sRequestsMemory: "16Mi"
k8sLimitsCpu: "0.1"
k8sLimitsMemory: "32Mi"
tag: "latest"
k8sEnvironment: "stage"
k8sReplicas: 1
k8sRequestsCpu: "0.05"
k8sRequestsMemory: "16Mi"
k8sLimitsCpu: "0.1"
k8sLimitsMemory: "32Mi"
tag: "latest"
k8sEnvironment: "test"
k8sReplicas: 1
k8sRequestsCpu: "0.05"
k8sRequestsMemory: "16Mi"
k8sLimitsCpu: "0.1"
k8sLimitsMemory: "32Mi"
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-deployment"
namespace: "{{ .Values.k8sNamespace }}"
spec:
selector:
matchLabels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
spec:
serviceAccountName: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-service-account"
containers:
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
imagePullPolicy: Always
resources:
requests:
cpu: "{{ .Values.k8sRequestsCpu }}"
memory: "{{ .Values.k8sRequestsMemory }}"
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
registry: "cr.gitlab.switch.ch"
image: "sschuepbach/dummy-app"
tag: placeholder
k8sName: dummy-app
k8sNamespace: memobase
k8sGroupId: xx
k8sGroupName: xx
k8sEnvironment: placeholder
k8sReplicas: placeholder
k8sRequestsCpu: placeholder
k8sRequestsMemory: placeholder
k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder
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