Start separate chart for gitea-runner.
This commit is contained in:
@ -1,29 +0,0 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "gitea.fullname" . }}-runner
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gitea-runner
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: gitea-runner
|
||||
annotations:
|
||||
checksum/secret: {{ tpl (toYaml .Values.runner.runnerToken.value) . | sha256sum }}
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: {{ .Values.runner.instanceURL }}
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "gitea.fullname" . }}-secrets
|
||||
key: token
|
||||
Reference in New Issue
Block a user