nixos-configs/k8s/drone/runner.yml
Julius 0dc227fc5f
Add k8s configs to the repo
Also add the remaining needed websites to the repo
2021-11-14 16:33:00 +01:00

40 lines
952 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: drone
namespace: drone
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
env:
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secrets
key: DRONE_RPC_SECRET
- name: DRONE_RPC_HOST
valueFrom:
secretKeyRef:
name: drone-secrets
key: DRONE_SERVER_HOST
- name: DRONE_RPC_PROTO
valueFrom:
secretKeyRef:
name: drone-secrets
key: DRONE_SERVER_PROTO
- name: DRONE_NAMESPACE_DEFAULT
value: drone