q3_server_status/kube/q3-serviceaccount-deploy.yaml
kleph fce4f86987
Some checks failed
continuous-integration/drone/push Build is failing
Add CI/CD
2020-03-25 02:39:13 +01:00

31 lines
561 B
YAML

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: q3-deploy
namespace: q3
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: q3-deploy-role
namespace: q3 # Should be namespace you are granting access to
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: q3-rolebinding
namespace: q3
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: q3-deploy-role
subjects:
- namespace: q3
kind: ServiceAccount
name: q3-deploy