ci: add GitLab build and k3s deploy pipeline
This commit is contained in:
1 parent
c15fc81178
commit
057e5c81bd
8 files changed
+140
-11
No files matched your search
@@ -0,0 +1,43 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: gitlab-deploy
|
||||
namespace: belki
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: gitlab-deploy
|
||||
namespace: belki
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- configmaps
|
||||
- events
|
||||
- persistentvolumeclaims
|
||||
- pods
|
||||
- pods/log
|
||||
- secrets
|
||||
- services
|
||||
verbs: [get, list, watch, create, update, patch]
|
||||
- apiGroups: ["apps"]
|
||||
resources:
|
||||
- deployments
|
||||
- deployments/status
|
||||
- replicasets
|
||||
- replicasets/status
|
||||
verbs: [get, list, watch, create, update, patch]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: gitlab-deploy
|
||||
namespace: belki
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: gitlab-deploy
|
||||
namespace: belki
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: gitlab-deploy
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
Reference in new issue
Block a user