gitea and git-ui.lan and git.lan

This commit is contained in:
2020-10-17 00:32:10 +02:00
parent 766db7bdf1
commit bdd139b34a
3 changed files with 89 additions and 11 deletions

View File

@@ -1,3 +1,7 @@
#we use postgresql:
#create database gitea;
#create user gitea with encrypted password 'secret';
#grant all privileges on database gitea to gitea;
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -46,13 +50,13 @@ spec:
httpGet:
path: /
port: http
# resources:
# requests:
# memory: "256Mi"
# cpu: "250m"
# limits:
# memory: "1000Mi"
# cpu: "500m"
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1000Mi"
cpu: "500m"
volumes:
- name: gitea
persistentVolumeClaim:
@@ -78,14 +82,14 @@ metadata:
name: gitea
labels:
app: gitea
release: latest
spec:
type: LoadBalancer
ports:
- port: 3000
targetPort: http
protocol: TCP
name: http
- port: 2222
- port: 22
targetPort: 22
name: ssh
selector:
@@ -98,7 +102,7 @@ metadata:
name: gitea
spec:
rules:
- host: git.lan
- host: git-ui.lan
http:
paths:
- backend: