Updated drone ci

This commit is contained in:
Sambo Chea 2022-04-01 10:44:38 +07:00
parent 0cbaf1c165
commit b9523c0d4d
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
2 changed files with 37 additions and 36 deletions

View File

@ -1,6 +1,7 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
namespace: drone
name: drone name: drone
labels: labels:
app.kubernetes.io/name: drone app.kubernetes.io/name: drone
@ -21,8 +22,8 @@ spec:
- containerPort: 3000 - containerPort: 3000
env: env:
- name: DRONE_RPC_HOST - name: DRONE_RPC_HOST
value: dci.osa.cubetiqs.com value: dci.cubetiqs.com
- name: DRONE_RPC_PROTO - name: DRONE_RPC_PROTO
value: https value: https
- name: DRONE_RPC_SECRET - name: DRONE_RPC_SECRET
value: super-duper-secret value: 1a6c2d8b6fac4bf9351e5149c39e7fc4

View File

@ -1,17 +1,17 @@
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
namespace: default namespace: drone
name: drone name: drone
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- secrets - secrets
verbs: verbs:
- create - create
- delete - delete
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- pods - pods
@ -29,11 +29,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: drone name: drone
namespace: default namespace: drone
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: default name: default
namespace: default namespace: drone
roleRef: roleRef:
kind: Role kind: Role
name: drone name: drone