chore: Update manifests after change
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
helm.sh/chart: gitea-actions-0.1.0
|
||||
app: gitea-actions-act-runner
|
||||
app.kubernetes.io/name: gitea-actions-act-runner
|
||||
app.kubernetes.io/instance: gitea
|
||||
app.kubernetes.io/version: "0.261.3"
|
||||
version: "0.261.3"
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
annotations:
|
||||
name: gitea-gitea-actions-act-runner
|
||||
namespace: gitea
|
||||
spec:
|
||||
replicas: 6
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: gitea-actions-act-runner
|
||||
app.kubernetes.io/instance: gitea
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: 6a9d82ad20f62c2e827a0639a2122bcb195c331a21688599f9fa9bbfd96be37a
|
||||
labels:
|
||||
helm.sh/chart: gitea-actions-0.1.0
|
||||
app: gitea-actions-act-runner
|
||||
app.kubernetes.io/name: gitea-actions-act-runner
|
||||
app.kubernetes.io/instance: gitea
|
||||
app.kubernetes.io/version: "0.261.3"
|
||||
version: "0.261.3"
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
initContainers:
|
||||
- name: init-gitea
|
||||
image: "docker.io/busybox:1.37.0@sha256:1487d0af5f52b4ba31c7e465126ee2123fe3f2305d638e7827681e7cf6c83d5e"
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo 'Trying to reach Gitea on http://gitea-http.gitea:3000'
|
||||
until timeout 10 wget --no-check-certificate --spider http://gitea-http.gitea:3000; do
|
||||
sleep 3
|
||||
echo "Trying again in 3 seconds..."
|
||||
done
|
||||
echo "Gitea has been reached!"
|
||||
- name: dind
|
||||
image: "docker.io/docker:29.5.0-dind@sha256:8e3fae900cbfbdc14e8abca89a9e44363065cb535f34a09283c59cc0dde2de20"
|
||||
restartPolicy: Always
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
privileged: true
|
||||
startupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /usr/bin/test
|
||||
- -S
|
||||
- /var/run/docker.sock
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /usr/bin/test
|
||||
- -S
|
||||
- /var/run/docker.sock
|
||||
resources:
|
||||
limits:
|
||||
ephemeral-storage: 15Gi
|
||||
requests:
|
||||
ephemeral-storage: 2Gi
|
||||
volumeMounts:
|
||||
- mountPath: /var/run/
|
||||
name: docker-socket
|
||||
- mountPath: /var/lib/docker
|
||||
name: docker-vol
|
||||
containers:
|
||||
- name: act-runner
|
||||
image: "docker.io/gitea/act_runner:0.6.1@sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86"
|
||||
imagePullPolicy: IfNotPresent
|
||||
workingDir: /data
|
||||
env:
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: "gitea-runner-secret"
|
||||
key: "token"
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: http://gitea-http.gitea:3000
|
||||
- name: CONFIG_FILE
|
||||
value: /actrunner/config.yaml
|
||||
- name: TZ
|
||||
value: America/Chicago
|
||||
resources:
|
||||
limits:
|
||||
ephemeral-storage: 15Gi
|
||||
requests:
|
||||
ephemeral-storage: 2Gi
|
||||
volumeMounts:
|
||||
- mountPath: /actrunner/config.yaml
|
||||
name: act-runner-config
|
||||
subPath: config.yaml
|
||||
- mountPath: /var/run/docker.sock
|
||||
name: docker-socket
|
||||
subPath: docker.sock
|
||||
- mountPath: /data
|
||||
name: data-act-runner
|
||||
- mountPath: /workspace
|
||||
name: workspace-vol
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- podAffinityTerm:
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: app.kubernetes.io/name
|
||||
operator: In
|
||||
values:
|
||||
- gitea-actions-act-runner
|
||||
topologyKey: kubernetes.io/hostname
|
||||
weight: 100
|
||||
volumes:
|
||||
- name: act-runner-config
|
||||
configMap:
|
||||
name: gitea-gitea-actions-act-runner-config
|
||||
- name: docker-socket
|
||||
emptyDir: {}
|
||||
- ephemeral:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storageClassName: ceph-block
|
||||
name: workspace-vol
|
||||
- ephemeral:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
storageClassName: ceph-block
|
||||
name: docker-vol
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data-act-runner
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
Reference in New Issue
Block a user