fix: Add PVC for gitea to maintain consistent state on rollout
This commit is contained in:
@@ -5,6 +5,8 @@ metadata:
|
||||
namespace: gitea
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gitea
|
||||
@@ -16,6 +18,7 @@ spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
fsGroup: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
@@ -29,10 +32,15 @@ spec:
|
||||
drop:
|
||||
- ALL
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
- mountPath: /var/lib/gitea
|
||||
name: gitea-data
|
||||
- mountPath: /etc/gitea
|
||||
name: gitea-config
|
||||
volumes:
|
||||
- name: gitea-data
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-pvc
|
||||
- name: gitea-config
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-config-pvc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user