2020-09-01 15:44:43 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: drone
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
name: ui
|
|
|
|
port: 80
|
|
|
|
selector:
|
|
|
|
app: drone
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: drone
|
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: drone
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
spec:
|
2020-10-02 20:18:35 +00:00
|
|
|
serviceAccountName: drone
|
2020-09-01 15:44:43 +00:00
|
|
|
containers:
|
|
|
|
- name: drone
|
2021-02-02 09:51:38 +00:00
|
|
|
image: drone/drone:latest
|
2020-09-01 15:44:43 +00:00
|
|
|
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'
|
2020-12-04 08:41:15 +00:00
|
|
|
- name: DRONE_USER_CREATE
|
|
|
|
value: 'username:djpbessems,admin:true'
|
2021-03-11 07:57:52 +00:00
|
|
|
- name: DRONE_TMATE_ENABLED
|
|
|
|
value: 'false'
|
2021-06-14 14:27:19 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: drone-secret
|
2020-09-01 15:44:43 +00:00
|
|
|
ports:
|
|
|
|
- name: ui
|
|
|
|
containerPort: 80
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data
|
|
|
|
name: flexvolsmb-drone-data
|
|
|
|
- name: drone-runner
|
2021-02-02 09:51:38 +00:00
|
|
|
image: drone/drone-runner-kube:latest
|
2020-09-01 15:44:43 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
env:
|
|
|
|
- name: DRONE_RPC_HOST
|
|
|
|
value: 'ci.spamasaurus.com'
|
|
|
|
- name: DRONE_RPC_PROTO
|
|
|
|
value: 'https'
|
2021-02-02 09:51:38 +00:00
|
|
|
- name: DRONE_RUNNER_CAPACITY
|
|
|
|
value: '2'
|
|
|
|
- name: DRONE_RUNNER_MAX_PROCS
|
|
|
|
value: '3'
|
2021-06-14 14:27:19 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: drone-secret
|
2020-09-01 15:44:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: flexvolsmb-drone-data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: flexvolsmb-drone-data
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: drone
|
|
|
|
labels:
|
|
|
|
app: drone
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: drone
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`ci.spamasaurus.com`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: drone
|
|
|
|
port: 80
|
|
|
|
middlewares:
|
|
|
|
- name: security-headers@file
|
2020-10-13 07:47:39 +00:00
|
|
|
- name: compression@file
|
2020-09-01 15:44:43 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-data
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 1Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-data
|
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl
|
|
|
|
server: 192.168.11.225
|
|
|
|
share: /K3s.Volumes/drone/data
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-data
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-data
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|
|
|
|
---
|
2020-12-04 08:41:15 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
2021-02-02 09:51:38 +00:00
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-certs
|
|
|
|
spec:
|
|
|
|
capacity:
|
2021-03-11 07:57:52 +00:00
|
|
|
storage: 10Gi
|
2021-02-02 09:51:38 +00:00
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-certs
|
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
|
|
|
|
server: 192.168.11.225
|
|
|
|
share: /K3s.Volumes/traefikcertsdumper/export
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-certs
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-certs
|
|
|
|
resources:
|
|
|
|
requests:
|
2021-03-11 07:57:52 +00:00
|
|
|
storage: 10Gi
|
2021-02-02 09:51:38 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
2020-12-04 08:41:15 +00:00
|
|
|
metadata:
|
2021-01-13 08:38:26 +00:00
|
|
|
name: flexvolsmb-drone-output
|
2020-12-04 08:41:15 +00:00
|
|
|
spec:
|
|
|
|
capacity:
|
2021-03-11 07:57:52 +00:00
|
|
|
storage: 10Gi
|
2020-12-04 08:41:15 +00:00
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
2021-01-13 08:38:26 +00:00
|
|
|
storageClassName: flexvolsmb-drone-output
|
2020-12-04 08:41:15 +00:00
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
2021-01-13 08:38:26 +00:00
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
|
2020-12-04 08:41:15 +00:00
|
|
|
server: 192.168.11.225
|
2021-01-13 08:38:26 +00:00
|
|
|
share: /K3s.Volumes/lighttpd/websites/sn.itch.fyi/Repository/rel
|
2020-12-04 08:41:15 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
2021-01-13 08:38:26 +00:00
|
|
|
name: flexvolsmb-drone-output
|
2020-12-04 08:41:15 +00:00
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
2021-01-13 08:38:26 +00:00
|
|
|
storageClassName: flexvolsmb-drone-output
|
2020-12-04 08:41:15 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
2021-03-11 07:57:52 +00:00
|
|
|
storage: 10Gi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-scratch
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 25Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-scratch
|
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
|
|
|
|
server: 192.168.11.225
|
|
|
|
share: /K3s.Volumes/drone/scratch
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-drone-scratch
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-drone-scratch
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 25Gi
|
2020-12-04 08:41:15 +00:00
|
|
|
---
|
2020-09-01 15:44:43 +00:00
|
|
|
kind: Role
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: drone
|
|
|
|
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
|
|
|
|
namespace: default
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2020-10-02 20:18:35 +00:00
|
|
|
name: drone
|
2020-09-01 15:44:43 +00:00
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
kind: Role
|
|
|
|
name: drone
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|