70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: drone
|
||
|
namespace: drone
|
||
|
labels:
|
||
|
app: drone
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: drone
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: drone
|
||
|
spec:
|
||
|
serviceAccountName: drone
|
||
|
containers:
|
||
|
- name: drone
|
||
|
image: drone/drone:latest
|
||
|
env:
|
||
|
- name: DRONE_SERVER_PROTO
|
||
|
value: 'https'
|
||
|
- name: DRONE_SERVER_HOST
|
||
|
value: 'ci.spamasaurus.com'
|
||
|
- name: DRONE_SERVER_PORT
|
||
|
value: ':80'
|
||
|
- name: DRONE_TLS_AUTOCERT
|
||
|
value: 'false'
|
||
|
- name: DRONE_GITEA_SERVER
|
||
|
value: 'https://code.spamasaurus.com'
|
||
|
- name: DRONE_GIT_ALWAYS_AUTH
|
||
|
value: 'false'
|
||
|
- name: DRONE_AGENTS_ENABLED
|
||
|
value: 'true'
|
||
|
- name: DRONE_USER_CREATE
|
||
|
value: 'username:djpbessems,admin:true'
|
||
|
- name: DRONE_TMATE_ENABLED
|
||
|
value: 'false'
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: drone
|
||
|
ports:
|
||
|
- name: ui
|
||
|
containerPort: 80
|
||
|
volumeMounts:
|
||
|
- mountPath: /data
|
||
|
name: flexvolsmb-drone-data
|
||
|
- name: drone-runner
|
||
|
image: drone/drone-runner-kube:latest
|
||
|
ports:
|
||
|
- containerPort: 3000
|
||
|
env:
|
||
|
- name: DRONE_RPC_HOST
|
||
|
value: 'ci.spamasaurus.com'
|
||
|
- name: DRONE_RPC_PROTO
|
||
|
value: 'https'
|
||
|
- name: DRONE_RUNNER_CAPACITY
|
||
|
value: '2'
|
||
|
- name: DRONE_RUNNER_MAX_PROCS
|
||
|
value: '3'
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: drone
|
||
|
volumes:
|
||
|
- name: flexvolsmb-drone-data
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-drone-data
|