2020-05-01 22:08:35 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2020-05-18 20:18:39 +00:00
|
|
|
name: drone-server
|
2020-05-01 22:08:35 +00:00
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
component: server
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: drone
|
|
|
|
component: server
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
component: server
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: drone
|
2021-08-26 16:42:21 +00:00
|
|
|
image: drone/drone
|
2020-05-01 22:08:35 +00:00
|
|
|
env:
|
|
|
|
- name: DRONE_SERVER_HOST
|
2020-08-02 03:40:27 +00:00
|
|
|
value: ${DRONE_EXTERNAL_HOST}
|
2021-08-26 16:42:21 +00:00
|
|
|
- name: DRONE_SERVER_PROTO
|
|
|
|
value: https
|
2020-05-01 22:08:35 +00:00
|
|
|
- name: DRONE_GITEA_SERVER
|
2020-08-02 03:40:27 +00:00
|
|
|
value: https://${GITEA_EXTERNAL_HOST}
|
2020-05-01 22:08:35 +00:00
|
|
|
- name: DRONE_GITEA_CLIENT_ID
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: drone-gitea-oauth-secret
|
|
|
|
key: client_id
|
|
|
|
- name: DRONE_GITEA_CLIENT_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: drone-gitea-oauth-secret
|
|
|
|
key: client_secret
|
|
|
|
- name: DRONE_RPC_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: drone-secret
|
|
|
|
key: rpc_secret
|
2021-08-26 16:42:28 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 1Gi
|
2020-05-01 22:08:35 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: drone
|
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: drone
|
|
|
|
component: server
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
protocol: TCP
|
|
|
|
port: 80
|
2021-08-26 16:42:21 +00:00
|
|
|
targetPort: http
|