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/server/server-deployment.yaml

63 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2024-09-24 06:50:02 +01:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-server
namespace: drone-ci
labels:
app: drone
spec:
replicas: 1
selector:
matchLabels:
app: drone
template:
metadata:
labels:
app: drone
spec:
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
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_GITEA_CLIENT_SECRET
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_RPC_SECRET
- name: DRONE_SERVER_HOST
value: "drone.fascinated.cc"
- name: DRONE_SERVER_PROTO
value: "https"
- name: DRONE_REGISTRATION_CLOSED
value: "true"
volumeMounts:
- name: drone-data
mountPath: /data
volumes:
- name: drone-data
persistentVolumeClaim:
claimName: drone-pvc