This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
homelab/kubernetes/apps/production/drone/runner/runner-deployment.yaml
Lee 412a0cdc64
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 24s
re-add drone
revert remove drone
2024-09-23 23:59:54 +00:00

42 lines
1009 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-runner
namespace: drone-ci
labels:
app.kubernetes.io/name: drone
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: drone
template:
metadata:
labels:
app.kubernetes.io/name: drone
spec:
containers:
- name: runner
image: drone/drone-runner-kube:latest
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
memory: 75Mi
limits:
cpu: 100m
memory: 200Mi
env:
- name: DRONE_RPC_HOST
value: drone.fascinated.cc
- name: DRONE_RPC_PROTO
value: https
- name: DRONE_NAMESPACE_DEFAULT
value: drone-ci
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_RPC_SECRET