mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-06-02 02:11:23 +05:30
47 lines
1.1 KiB
Smarty
47 lines
1.1 KiB
Smarty
|
{{/*
|
||
|
Create helm partial for gitea server
|
||
|
*/}}
|
||
|
{{- define "gitea" }}
|
||
|
- name: gitea
|
||
|
image: {{ .Values.images.gitea }}
|
||
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||
|
env:
|
||
|
- name: DATABASE_PASSWORD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
{{- if .Values.mariadb.enabled }}
|
||
|
name: {{ template "mariadb.fullname" . }}
|
||
|
key: mariadb-password
|
||
|
{{- else }}
|
||
|
name: {{ printf "%s-%s" .Release.Name "externaldb" }}
|
||
|
key: db-password
|
||
|
{{- end }}
|
||
|
ports:
|
||
|
- name: ssh
|
||
|
containerPort: {{ .Values.service.ssh.port }}
|
||
|
- name: http
|
||
|
containerPort: {{ .Values.service.http.port }}
|
||
|
livenessProbe:
|
||
|
tcpSocket:
|
||
|
port: http
|
||
|
initialDelaySeconds: 200
|
||
|
timeoutSeconds: 1
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
failureThreshold: 10
|
||
|
readinessProbe:
|
||
|
tcpSocket:
|
||
|
port: http
|
||
|
initialDelaySeconds: 5
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
failureThreshold: 3
|
||
|
resources:
|
||
|
{{ toYaml .Values.resources.gitea | indent 10 }}
|
||
|
volumeMounts:
|
||
|
- name: gitea-data
|
||
|
mountPath: /data
|
||
|
- name: gitea-config
|
||
|
mountPath: /etc/gitea
|
||
|
{{- end }}
|