1
0
Fork 0
home-stack-kustomize/kustomize/bases/drone/drone-runner-deployment.yaml

71 lines
1.3 KiB
YAML
Raw Normal View History

2020-05-01 22:08:35 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2020-05-18 20:18:39 +00:00
name: drone-runner
2020-05-01 22:08:35 +00:00
labels:
app: drone
component: runner
spec:
selector:
matchLabels:
app: drone
component: runner
template:
metadata:
labels:
app: drone
component: runner
spec:
containers:
- name: drone
2021-08-26 16:42:21 +00:00
image: drone/drone-runner-kube
2020-05-01 22:08:35 +00:00
env:
- name: DRONE_RPC_HOST
value: drone.gitea.svc
- name: DRONE_RPC_PROTO
value: http
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: rpc_secret
ports:
- name: http
containerPort: 80
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: drone-runner-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- create
- delete
- list
- watch
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: drone-runner-rolebinding
subjects:
- kind: ServiceAccount
name: default
roleRef:
kind: Role
name: drone-runner-role
apiGroup: rbac.authorization.k8s.io