Description
The ServiceAccount admission plugin assigns the default account to new Pods that omit one and checks that the selected account exists. Depending on the Pod and account settings, it also supplies a token volume and image pull credentials.
Potential impact
Workloads that rely on these defaults or credentials may lose API access or fail to pull an image when a new Pod starts.
Remediation
Remove ServiceAccount from the API server’s --disable-admission-plugins. Create a new Pod and check its assigned account, expected token mount and image pull credentials.
Examples
The second excerpt explicitly lists ServiceAccount in --enable-admission-plugins. The default already enables it.
Before
yaml
command: ["kube-apiserver"]
args: ["--disable-admission-plugins=ServiceAccount"]
After
yaml
command: ["kube-apiserver"]
args: ["--enable-admission-plugins=ServiceAccount"]