mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 00:12:18 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			528 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			528 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # ClusterRole.yaml
 | |
| apiVersion: rbac.authorization.k8s.io/v1
 | |
| kind: ClusterRole
 | |
| metadata:
 | |
|   # role name
 | |
|   name: service-reader
 | |
| rules:
 | |
|   - apiGroups: [""]
 | |
|     resources: ["services"]
 | |
|     verbs: ["get", "list", "watch"]
 | |
| 
 | |
| ---
 | |
| # ClusterRoleBinding.yaml
 | |
| apiVersion: rbac.authorization.k8s.io/v1
 | |
| kind: ClusterRoleBinding
 | |
| metadata:
 | |
|   name: default-service-reader-binding
 | |
| subjects:
 | |
|   - kind: ServiceAccount
 | |
|     name: default
 | |
|     namespace: default
 | |
| roleRef:
 | |
|   kind: ClusterRole
 | |
|   name: service-reader
 | |
|   apiGroup: rbac.authorization.k8s.io
 |