apps/forgejo/resources/runners/act-cache.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-17 07:18:15 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: act-runner-cache
labels:
app.kubernetes.io/name: act-runner-cache
spec:
replicas: 2
2024-09-08 07:39:04 +00:00
revisionHistoryLimit: 3
2023-11-17 07:18:15 +00:00
selector:
matchLabels:
app.kubernetes.io/name: act-runner-cache
template:
metadata:
labels:
app.kubernetes.io/name: act-runner-cache
spec:
containers:
- name: act-runner-cache
image: act_runner
command:
2024-02-22 15:06:41 +00:00
- /bin/forgejo-runner
2023-11-17 07:18:15 +00:00
args:
- cache-server
- --port=8080
- --dir=/data
resources:
limits:
memory: "384Mi"
cpu: "250m"
ports:
- containerPort: 8080
volumeMounts:
- name: cache-data
mountPath: /data
2024-02-22 15:06:41 +00:00
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
2023-11-17 07:18:15 +00:00
volumes:
- name: cache-data
persistentVolumeClaim:
2024-02-22 15:06:41 +00:00
claimName: act-runner-cache
securityContext:
runAsNonRoot: true
fsGroup: 1001