WIP gitea

This commit is contained in:
Adrien Reslinger 2020-07-14 12:10:19 +02:00
parent 7670dfe469
commit 3dc27886cb
12 changed files with 218 additions and 45 deletions

View file

@ -40,7 +40,7 @@ spec:
name: git-ssh
volumeMounts:
- mountPath: /data
name: git-data
name: gitea-data
- name: gitea-config
mountPath: /data/gitea/conf
resources:
@ -51,13 +51,10 @@ spec:
cpu: 1
memory: 200Mi
volumes:
- name: git-data
# hostPath:
# path: /mnt/kube-data/gitea
# type: Directory
# persistentVolumeClaim:
# claimName: gitea
emptyDir: {}
- name: gitea-data
persistentVolumeClaim:
claimName: gitea
# emptyDir: {}
- name: gitea-config
configMap:
name: gitea

View file

@ -4,7 +4,7 @@ metadata:
name: gitea
namespace: gitea
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/ingress.class: traefik
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:

View file

@ -1,13 +0,0 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: gitea
namespace: gitea
annotations:
volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi