mirror of
https://github.com/thejimnicholson/gitea.git
synced 2025-12-06 03:30:42 +00:00
Deploy gitea
This commit is contained in:
parent
7307b28699
commit
7808d0a0c4
50
gitea-deployment.yaml
Normal file
50
gitea-deployment.yaml
Normal 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
|
||||||
@ -15,6 +15,6 @@ resources:
|
|||||||
- storage.yaml
|
- storage.yaml
|
||||||
- configuration.yaml
|
- configuration.yaml
|
||||||
- postgres-deployment.yaml
|
- postgres-deployment.yaml
|
||||||
# - deployment.yaml
|
- gitea-deployment.yaml
|
||||||
# - service.yaml
|
# - service.yaml
|
||||||
# - ingress.yaml
|
# - ingress.yaml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user