Skip to content

Commit 1daa5db

Browse files
committed
add helm chart for kkp training
1 parent e6012ef commit 1daa5db

6 files changed

Lines changed: 86 additions & 2 deletions

File tree

helm-chart/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
apiVersion: v2
2+
name: my-app
3+
version: 1.0.0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: my-app
5+
data:
6+
training-application.conf: |
7+
name: {{ .Values.name }}
8+
version: {{ .Values.version }}
9+
message: {{ .Values.message }}
10+
color: {{ .Values.color }}
11+
catMode: {{ .Values.catMode }}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: my-app
5+
labels:
6+
app: my-app
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: my-app
12+
template:
13+
metadata:
14+
labels:
15+
app: my-app
16+
spec:
17+
terminationGracePeriodSeconds: 0
18+
containers:
19+
- name: blue
20+
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
21+
imagePullPolicy: Always
22+
tty: true
23+
stdin: true
24+
ports:
25+
- name: http
26+
containerPort: 8080
27+
livenessProbe:
28+
httpGet:
29+
path: /liveness/
30+
port: 8080
31+
readinessProbe:
32+
httpGet:
33+
path: /readiness/
34+
port: 8080
35+
resources:
36+
requests:
37+
cpu: 100m
38+
memory: 100Mi
39+
limits:
40+
cpu: 100m
41+
memory: 100Mi
42+
volumeMounts:
43+
- name: my-volume
44+
mountPath: /app/training-application.conf
45+
subPath: training-application.conf
46+
volumes:
47+
- name: my-volume
48+
configMap:
49+
name: my-app

helm-chart/templates/service.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: my-app
5+
spec:
6+
type: {{ .Values.service.type }}
7+
selector:
8+
app: my-app
9+
ports:
10+
- name: http
11+
port: 80
12+
targetPort: http

helm-chart/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: my-app
2+
version: v1
3+
image:
4+
name: quay.io/kubermatic-labs/training-application
5+
tag: 4.0.0
6+
color: white
7+
message: "Hello from the app installed via helm"
8+
catMode: true
9+
10+
service:
11+
type: ClusterIP

todo.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
## verify leak cpu method
44

5-
## add timestamp when the process was started
6-
75
## add ip info to application
86

97
## make root.html configurable (parse on runtime) for CF

0 commit comments

Comments
 (0)