mirror of
https://github.com/thejimnicholson/gitea.git
synced 2025-12-06 03:30:42 +00:00
Deploy postgres
This commit is contained in:
parent
df19b7ca5c
commit
b758c6c7d3
@ -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
|
||||||
|
|||||||
@ -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
|
|
||||||
Loading…
Reference in New Issue
Block a user