ServiceAccount Token 在不同 K8s 版本中的使用
ServiceAccount为Pod中运行的进程提供了一个身份,Pod内的进程可以使用其关联服务账号的身份,向集群的APIServer进行身份认证。当创建Pod的时候规范下面有一个spec.serviceAccount的属性用来指定该Pod使用哪个ServiceAccount,如果没有指定的话则默认使用default这个sa。然后通过投射卷,在Pod的目录runsecretskubernetes.ioserviceaccount下有一个token令牌文件。我们通过RBAC对该sa授予了什么权...