.kube/config hardly a "state", it is just a client configuration, so you can just take its contents (or part of it if you have more contexts locally) and use it on another machine. That is, if you do not want to create a dedicated user (key / certificate) for CI, in this case you need to create separate credentials, and if you use the / cert key, they must be for another "subject" of the certificate, so users can be recognized as different.
Radek 'Goblin' Pieczonka
source share