---
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-server
namespace: drone-ci
labels:
app: drone
spec:
replicas: 1
selector:
matchLabels:
template:
containers:
- name: drone
image: drone/drone:2
ports:
- containerPort: 80
- containerPort: 443
resources:
requests:
cpu: 50m
memory: 75Mi
limits:
cpu: 100m
memory: 200Mi
env:
- name: DRONE_GITEA_SERVER
value: "https://git.fascinated.cc"
- name: DRONE_GITEA_CLIENT_ID
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_GITEA_CLIENT_ID
- name: DRONE_GITEA_CLIENT_SECRET
key: DRONE_GITEA_CLIENT_SECRET
- name: DRONE_RPC_SECRET
key: DRONE_RPC_SECRET
- name: DRONE_SERVER_HOST
value: "drone.fascinated.cc"
- name: DRONE_SERVER_PROTO
value: "https"
- name: DRONE_REGISTRATION_CLOSED
value: "false"
volumeMounts:
- name: drone-data
mountPath: /data
volumes:
persistentVolumeClaim:
claimName: drone-pvc