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/disabled/drone/runner/runner-deployment.yaml

42 lines
1009 B
YAML
Raw Permalink Normal View History

2024-09-24 05:50:02 +00:00
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