乐趣区

关于kubernetes:24kubernetesk8s笔记-认证授权与准入控制四-RBAC访问控制

RBAC 访问控制 ServiceAccount

前言:

在上一节曾经介绍过 RBAC 通过绑定受权 Users Accounts 失去不同作用域权限
这节对 Serviceaccount 进行绑定受权 因为 sa 权限是针对 Pod 的权限 命令行无奈间接验证 所以借助 dashbaortd 来验证

  • 首先在 help 中能够看到 有对 serviceaccount 的绑定
[root@k8s-master authfiles]# kubectl create rolebinding --help
...
Usage:
  kubectl create rolebinding NAME --clusterrole=NAME|--role=NAME [--user=username]
[--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run=server|client|none]
[options]

示例 1: 部署 DashBoard 验证 ServiceAccount 权限

  • DashBoard 官网 URL

    https://kubernetes.io/zh/docs…

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

[root@k8s-master authfiles]# kubectl get pod -n kubernetes-dashboard
NAME                                         READY   STATUS    RESTARTS   AGE
dashboard-metrics-scraper-79c5968bdc-28h7g   1/1     Running   0          84s
kubernetes-dashboard-9f9799597-qj8jv         1/1     Running   0          84s

[root@k8s-master authfiles]# kubectl get svc -n kubernetes-dashboard
NAME                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
dashboard-metrics-scraper   ClusterIP   10.98.196.130   <none>        8000/TCP   91s
kubernetes-dashboard        ClusterIP   10.99.133.20    <none>        443/TCP    93s
  • 测试环境 这里应用比较简单的裸露形式 批改配置文件间接裸露 DashBoard 端口
[root@k8s-master authfiles]# vim recommended.yaml  
kind: Service
apiVersion: v1
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
spec:
  ports:
    - port: 443
      targetPort: 8443
  externalIPs:   #应用内部 IP 裸露 https
  - 192.168.54.171  
  selector:
    k8s-app: kubernetes-dashboard
  • 从新利用失效
[root@k8s-master authfiles]# kubectl apply -f  recommended.yaml
    
[root@k8s-master authfiles]# kubectl get svc -n kubernetes-dashboard
NAME                        TYPE        CLUSTER-IP      EXTERNAL-IP      PORT(S)    AGE
dashboard-metrics-scraper   ClusterIP   10.98.196.130   <none>           8000/TCP   5m7s
kubernetes-dashboard        ClusterIP   10.99.133.20    192.168.54.171   443/TCP    5m9s
  • 关上浏览器输出之前批改的地址


  • 这里登录用到的 token 就 Serviceaccount token 对 Serviceaccount 的受权不同决定了 dashboard 的操作权限

示例 2: 创立 serviceaccount 绑定 admin 并验证权限, 作用域为名称空间

  • User –> Rolebindig –>ClusterRole: 权限降级,serviceaccount dev-admin 对名称空间 dev 领有齐全权限
  • 创立 serviceaccount
[root@k8s-master PodControl]# kubectl create serviceaccount dev-admin -n dev
serviceaccount/dev-admin created
  • 对 serviceaccount 通过 rolebinding 绑定 admin
[root@k8s-master PodControl]# kubectl create  rolebinding dev-admin  -n dev --clusterrole=admin  --serviceaccount=dev:dev-admin
rolebinding.rbac.authorization.k8s.io/dev-admin created
[root@k8s-master PodControl]# kubectl get sa -n rolebinding
No resources found in rolebinding namespace.
[root@k8s-master PodControl]# kubectl get rolebinding  -n dev
NAME        ROLE                AGE
dev-admin   ClusterRole/admin   10s
  • 查看 serviceaccount 中 secrets 的 token
[root@k8s-master PodControl]# kubectl get secrets -n dev
NAME                    TYPE                                  DATA   AGE
admin-token-42gb9       kubernetes.io/service-account-token   3      5d6h
default-token-m5b9r     kubernetes.io/service-account-token   3      5d6h
dev-admin-token-zbt9z   kubernetes.io/service-account-token   3      26s
[root@k8s-master PodControl]# kubectl get secrets dev-admin-token-zbt9z -n dev  -o yaml
apiVersion: v1
data:
  ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM1ekNDQWMrZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJeE1EWXlPREUzTkRJeE1Gb1hEVE14TURZeU5qRTNOREl4TUZvd0ZURVRNQkVHQTF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0.lAaZ8hZ3TsBIjJAlG4kn0oO8n8HJcIEb0e4t5-Ekf20iSdwqjTnm37gAdj8bpknqmXdtacGPj8OJlKHaFPrf3_nBxMkCSXpsnVpU7jPhG7_WbfKpGOltLXDPxWpASjyjuiydpagYDbBpWNtITbvx1VheKLyX60wWD1xgYKWxGd8677bYl-NV-sn53DASrrOkpmZd2j08B2jh6SkZrbnW75MLb87aR7Th4dJVnkbU9rH1KPTYuWzcZNRpgWUr7cIL51pn7geiyFIi2A9yfUzIh4FEhj95jYWHwBujD7Os5fVHagrOiHSTd3MnvirPym4nXkt6Rdtm-DQJZwiEOUgYGQ

[root@k8s-master PodControl]# 
  • 权限验证 只对 dev 和 defualt 名称空间有权限

示例 3: 创立 serviceaccount 绑定 cluster-admin

  • 领有超级管理员权限 作用域为集群级别资源
  • 创立 serviceaccount
[root@k8s-master PodControl]# kubectl create serviceaccount cluster-admin -n kubernetes-dashboard
serviceaccount/cluster-admin created

#创立 clusterrolebinding 绑定 cluster-admin  集群级别资源 不须要指定名称空间
[root@k8s-master PodControl]# kubectl create clusterrolebinding sa-cluster-admin --clusterrole=cluster-admin --serviceaccount=kubernetes-dashboard:cluster-admin
clusterrolebinding.rbac.authorization.k8s.io/sa-cluster-admin created

[root@k8s-master PodControl]# kubectl get secrets -n kubernetes-dashboard
NAME                               TYPE                                  DATA   AGE
cluster-admin-token-nq8jq          kubernetes.io/service-account-token   3      29s
default-token-5rlqd                kubernetes.io/service-account-token   3      63m
kubernetes-dashboard-certs         Opaque                                0      63m
kubernetes-dashboard-csrf          Opaque                                1      63m
kubernetes-dashboard-key-holder    Opaque                                2      63m
kubernetes-dashboard-token-kdc57   kubernetes.io/service-account-token   3      63m
[root@k8s-master PodControl]# kubectl get secrets cluster-admin-token-nq8jq -n kubernetes-dashboard -o yaml
apiVersion: v1
data:
  ...
  token: ZXlKaGJHY2lPaUpTVXpJMU5pSXNJbXRwWkNJNklqaDRia3BGTWtNeFYwRnRabXhQVG14c1YzWmhZM2x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BFW9QHeJnI4g-xTmiOR6f2RtETGbQl_klnbWZldQKlSaz1q_cEmBeJsEE8Pu02btu9Nx-0MJs_0dhO0752kP4LzhEu4LS3nx62CsA5khd1zygPH-z5IkwMWNcYzaP1mYGjfWbw962LGpvv8iMkG-88JlHZR9Q-r-yhD_32U4zURmWlJr5ITlyxoFz_18-XVm8iaGuVPkpFuNmewcH3ByerrFaSIfSWSP3CMFNb2UZQIJaok1QT7KhtVFfVTnmOzP8BNvqTaJKoAyJ4fKrxG8usgQfK2nKcbDg6lVEtZlrOGBYQLViXEH2idk9FiuAMtVHzTmALINe4u-p_6A

[root@k8s-master PodControl]# 
  • 登录 kubernetes-dashboard 领有集群权限

退出移动版