Skip to content

Commit

Permalink
Add helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams committed Dec 4, 2023
1 parent 19613d3 commit 5f8279b
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: hello-world
description: A test application
type: application
version: 0.1.0
appVersion: latest
24 changes: 24 additions & 0 deletions helm/templates/example-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-deployment
spec:
selector:
matchLabels:
component: example-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
replicas: 1
template:
metadata:
labels:
component: example-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
spec:
containers:
- name: frontend
image: ghcr.io/scai-bio/helm-upgrade-actions/hello-world:{{ .Values.ui.version }}
imagePullPolicy: Always
ports:
- containerPort: 80
20 changes: 20 additions & 0 deletions helm/templates/example-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-ingress
labels:
component: ad-mapper-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
spec:
rules:
- host: {{ .Values.ui.domain }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-service
port:
name: web
16 changes: 16 additions & 0 deletions helm/templates/example-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
labels:
component: example-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
spec:
ports:
- name: web
port: 80
selector:
component: example-service
version: {{ .Chart.AppVersion }}
deployment-id: {{ .Release.Name }}
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ui:
version: 0.1.0
domain: hello-world.scai.fraunhofer.de

0 comments on commit 5f8279b

Please sign in to comment.