Initial commit
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
parent
9156c98a1a
commit
9061f0d470
18 changed files with 1522 additions and 2 deletions
45
templates/deployment.yaml
Normal file
45
templates/deployment.yaml
Normal file
|
@ -0,0 +1,45 @@
|
|||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "fullname" . }}
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "fullname" . }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "fullname" . }}
|
||||
spec:
|
||||
containers:
|
||||
{{ include "gitea" . | indent 6 }}
|
||||
{{ include "memcached" . | indent 6 }}
|
||||
initContainers:
|
||||
{{ include "init" . | indent 6 }}
|
||||
volumes:
|
||||
- name: gitea-data
|
||||
{{- if .Values.persistence.enabled }}
|
||||
{{- if .Values.persistence.directGiteaVolumeMount }}
|
||||
{{ tpl .Values.persistence.directGiteaVolumeMount . | indent 8 }}
|
||||
{{- else }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.existingGiteaClaim | default (include "fullname" .) }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
- name: gitea-config
|
||||
configMap:
|
||||
name: {{ template "fullname" . }}
|
||||
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.imagePullSecrets }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue