Deploy postgres

This commit is contained in:
Jim Nicholson 2021-10-29 23:22:53 -07:00
parent df19b7ca5c
commit b758c6c7d3
2 changed files with 1 additions and 45 deletions

View File

@ -14,6 +14,7 @@ resources:
- secrets.yaml - secrets.yaml
- storage.yaml - storage.yaml
- configuration.yaml - configuration.yaml
- postgres-deployment.yaml
# - deployment.yaml # - deployment.yaml
# - service.yaml # - service.yaml
# - ingress.yaml # - ingress.yaml

View File

@ -55,48 +55,3 @@
- name: postgres-persistent-storage - name: postgres-persistent-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: postgres-pvc claimName: postgres-pvc
---
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.4
name: gitea
envFrom:
- configMapRef:
name: gitea-env
env:
- 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