Add atat-deployer user for travis to use
This commit is contained in:
parent
8c43b60bba
commit
6a776b4087
38
deploy/kubernetes/atst-travis-deployer.yml
Normal file
38
deploy/kubernetes/atst-travis-deployer.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: atat-deployer
|
||||||
|
namespace: atat
|
||||||
|
---
|
||||||
|
kind: Role
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
metadata:
|
||||||
|
namespace: atat
|
||||||
|
name: travis-deploy-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["extensions", "apps"]
|
||||||
|
resources: ["deployments"]
|
||||||
|
verbs: ["get", "create", "update", "patch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services"]
|
||||||
|
verbs: ["get", "create", "update", "patch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["configmaps"]
|
||||||
|
verbs: ["get", "create", "update", "patch"]
|
||||||
|
- apiGroups: ["extensions", "apps"]
|
||||||
|
resources: ["ingresses"]
|
||||||
|
verbs: ["get", "create", "update", "patch"]
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
metadata:
|
||||||
|
name: travis-role-binding
|
||||||
|
namespace: atat
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: atat-deployer
|
||||||
|
namespace: atat
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: travis-deploy-role
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
Loading…
x
Reference in New Issue
Block a user