Deploy gitea

This commit is contained in:
Jim Nicholson 2021-10-30 00:24:48 -07:00
parent 7307b28699
commit 7808d0a0c4
2 changed files with 51 additions and 1 deletions

50
gitea-deployment.yaml Normal file
View File

@ -0,0 +1,50 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea
namespace: gitea
labels:
app: gitea
spec:
selector:
matchLabels:
app: gitea
strategy:
#type: Recreate
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: gitea
spec:
containers:
- image: gitea/gitea:1.15.5
name: gitea
envFrom:
- configMapRef:
name: gitea-env
env:
- name: DB_USER
valueFrom:
secretKeyRef:
name: gitea-secrets
key: pg_username
- name: DB_PASSWD
valueFrom:
secretKeyRef:
name: gitea-secrets
key: pg_password
ports:
- containerPort: 3000
name: gitea
volumeMounts:
- name: gitea-persistent-storage
mountPath: /data
volumes:
- name: gitea-persistent-storage
persistentVolumeClaim:
claimName: gitea-pvc

View File

@ -15,6 +15,6 @@ resources:
- storage.yaml
- configuration.yaml
- postgres-deployment.yaml
# - deployment.yaml
- gitea-deployment.yaml
# - service.yaml
# - ingress.yaml