This commit is contained in:
62
kubernetes/apps/disabled/drone/server/server-deployment.yaml
Normal file
62
kubernetes/apps/disabled/drone/server/server-deployment.yaml
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
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
|
Reference in New Issue
Block a user