Skip to content

Commit

Permalink
add patchman chart
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jul 3, 2024
1 parent 9c155c5 commit 2c506d4
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/patchman/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v2
name: patchman
description: A Helm chart for patchman
type: application

version: 0.0.1

# App metadata
appVersion: "1.0.0"
maintainers:
- name: elasticroentgen
email: markus.keil@ethereum.org
44 changes: 44 additions & 0 deletions charts/patchman/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-patchman
{{- with .Values.commonAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app: {{ .Release.Name }}-patchman
app.kubernetes.io/component: patchman
spec:
selector:
matchLabels:
app.kubernetes.io/component: patchman
template:
metadata:
annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
app: {{ .Release.Name }}-patchman
app.kubernetes.io/component: patchman
spec:
{{- with .Values.extraInitContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
containers:
- name: {{ .Release.Name }}-patchman
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
ports:
- name: http
containerPort: 3000
protocol: TCP
volumeMounts:
- name: sqlite
mountPath: /var/lib/patchman/db
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumes:
- name: sqlite
persistentVolumeClaim:
claimName: {{ .Release.Name }}-sqlite
32 changes: 32 additions & 0 deletions charts/patchman/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-ingress
{{- if or .Values.commonAnnotations .Values.ingress.annotations }}
annotations:
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.commonAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.className }}
tls:
- hosts:
- {{ .Values.baseDomain }}
secretName: {{ .Values.ingress.tls.secretName }}
rules:
- host: {{ .Values.baseDomain }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-svc
port:
name: http
{{- end }}
10 changes: 10 additions & 0 deletions charts/patchman/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-sqlite
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
12 changes: 12 additions & 0 deletions charts/patchman/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-svc
labels:
app.kubernetes.io/name: {{ .Release.Name }}-patchman
spec:
selector:
app: {{ .Release.Name }}-patchman
ports:
- name: http
port: 80
13 changes: 13 additions & 0 deletions charts/patchman/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
baseDomain: patchman.example.com
image:
repository: docker pull ghcr.io/ethdevops/patchman-docker
tag: main
commonAnnotations: {}
podAnnotations: {}
extraInitContainers: {}
ingress:
enabled: false
className: ""
annotations: {}
tls:
secretName: ""

0 comments on commit 2c506d4

Please sign in to comment.