gitea liveness probes and some config updates
This commit is contained in:
@@ -11,6 +11,8 @@ metadata:
|
||||
release: latest
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gitea
|
||||
@@ -24,7 +26,6 @@ spec:
|
||||
containers:
|
||||
- name: gitea
|
||||
image: gitea/gitea:latest
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: USER_UID
|
||||
value: "1000"
|
||||
@@ -32,6 +33,8 @@ spec:
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: "Europe/Berlin"
|
||||
- name: GITEA__lfs__PATH
|
||||
value: /data/git/lfs
|
||||
- name: DB_TYPE
|
||||
value: postgres
|
||||
- name: DB_HOST
|
||||
@@ -42,6 +45,16 @@ spec:
|
||||
value: gitea
|
||||
- name: DB_PASSWD
|
||||
value: giteaEu94XSS4gKpheSBoMsIs
|
||||
- name: GITEA__indexer__ISSUE_INDEXER_TYPE
|
||||
value: db
|
||||
- name: GITEA__log__LEVEL
|
||||
value: warn
|
||||
- name: GITEA__log__MODE
|
||||
value: console
|
||||
- name: GITEA__queue__TYPE
|
||||
value: persistable-channel
|
||||
#- name: GITEA__queue__CONN_STR
|
||||
#value: redis://redis-standalone.live-env.svc.cluster.local:6397/0
|
||||
volumeMounts:
|
||||
- name: gitea
|
||||
mountPath: /data
|
||||
@@ -53,20 +66,24 @@ spec:
|
||||
containerPort: 22
|
||||
protocol : TCP
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
requests:
|
||||
memory: "200Mi"
|
||||
cpu: "150m"
|
||||
limits:
|
||||
memory: "312Mi"
|
||||
cpu: "500m"
|
||||
#resources:
|
||||
# requests:
|
||||
# memory: "300Mi"
|
||||
# cpu: "150m"
|
||||
# limits:
|
||||
# memory: "512Mi"
|
||||
# cpu: "1000m"
|
||||
volumes:
|
||||
- name: gitea
|
||||
persistentVolumeClaim:
|
||||
|
||||
Reference in New Issue
Block a user