Is it necessary to define --serviceaccount while defining rolebinding for serviceaccount , can’t we do with --user. Please clarify
No, you have to add
--serviceaccount if you’re defining RB for SA.
Munish Kumar Anand:
user and serviceaccount are two different things. IF you have been asked to create binding for SA, then u have to use --serviceaccount and if you have been asked for user, then u have to use --username