mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
34 lines
494 B
YAML
34 lines
494 B
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
namespace: coal
|
|
name: ci
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
namespace: coal
|
|
name: ci
|
|
annotations:
|
|
kubernetes.io/service-account.name: ci
|
|
type: kubernetes.io/service-account-token
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: ci-rb
|
|
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: ci
|
|
namespace: coal
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: edit
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|