netflux-kubernetes/deploy/base/deploy-drone-runner.yaml

64 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2022-05-18 16:11:15 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-runner
labels:
2022-06-05 15:44:52 +00:00
app: drone
component: runner
2022-05-18 16:11:15 +00:00
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
2023-09-10 22:18:13 +00:00
annotations:
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
2022-05-18 16:11:15 +00:00
spec:
selector:
matchLabels:
2022-06-05 15:44:52 +00:00
app: drone
component: runner
2022-05-18 16:11:15 +00:00
template:
metadata:
labels:
2022-06-05 15:44:52 +00:00
app: drone
component: runner
2022-05-18 16:11:15 +00:00
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
spec:
containers:
- name: drone-runner
2023-10-08 17:40:14 +00:00
image: drone/drone-runner-kube:latest
2022-05-18 16:11:15 +00:00
ports:
- name: http
protocol: TCP
containerPort: 3000
env:
- name: DRONE_RPC_HOST
valueFrom:
configMapKeyRef:
name: drone-config
key: rpc-host
- name: DRONE_RPC_PROTO
valueFrom:
configMapKeyRef:
name: drone-config
key: rpc-proto
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-credentials
key: rpc-secret
- name: DRONE_DEBUG
valueFrom:
configMapKeyRef:
name: drone-config
key: logs-debug
- name: DRONE_RESOURCE_REQUEST_CPU
value: "500"
2023-09-10 18:44:15 +00:00
resources:
requests:
memory: 256Mi
cpu: 500m
limits:
memory: 1024Mi
cpu: 1500m
securityContext:
readOnlyRootFilesystem: true