Start working on gitea
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2020-07-11 00:22:58 +02:00
parent 42f9dcb6c8
commit 7670dfe469
5 changed files with 255 additions and 0 deletions

View file

@ -0,0 +1,63 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea
namespace: gitea
labels:
app: gitea
spec:
replicas: 1
selector:
matchLabels:
app: gitea
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: gitea
spec:
initContainers:
- name: init-disk
image: busybox:latest
command:
- /bin/chown
- 1000:1000
- /data
volumeMounts:
- name: gitea-data
mountPath: "/data"
containers:
- name: gitea
image: gitea/gitea:latest
ports:
- containerPort: 3000
name: gitea
- containerPort: 22
name: git-ssh
volumeMounts:
- mountPath: /data
name: git-data
- name: gitea-config
mountPath: /data/gitea/conf
resources:
requests:
cpu: 10m
memory: 50Mi
limits:
cpu: 1
memory: 200Mi
volumes:
- name: git-data
# hostPath:
# path: /mnt/kube-data/gitea
# type: Directory
# persistentVolumeClaim:
# claimName: gitea
emptyDir: {}
- name: gitea-config
configMap:
name: gitea