feat: add kubernetes deployment with kustomize (#258)

Signed-off-by: Guilhem Lettron <guilhem@barpilot.io>
This commit is contained in:
Guilhem Lettron
2024-04-24 21:01:17 +02:00
committed by GitHub
parent e4bbd756f0
commit a3a3d367ea
6 changed files with 164 additions and 0 deletions

29
deploy/deployment.yaml Normal file
View File

@@ -0,0 +1,29 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: opengist
spec:
selector:
matchLabels:
app.kubernetes.io/name: opengist
template:
metadata:
labels:
app.kubernetes.io/name: opengist
spec:
containers:
- name: opengist
image: ghcr.io/thomiceli/opengist
ports:
- name: http
containerPort: 6157
- name: ssh
containerPort: 2222
volumeMounts:
- mountPath: /opengist
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: opengist-data