How to import state created on another server?

前端 未结 2 1011
难免孤独
难免孤独 2021-02-04 10:21

I setup my Kubernetes cluster using kops, and I did so from local machine. So my .kube directory is stored on my local machine, but I setup kops for s

2条回答
  •  一向
    一向 (楼主)
    2021-02-04 11:05

    .kube/config is hardly a "state", it's just a client configuration, so it is possible to just take the content of it (or its part if you have more contexts localy) and use on another machine. That is unless you want to create a dedicated user (key/cert) for CI, in which case you need to create a separate credentials and if you use key/cert they'd need to be for a different certificate "subject" so the users can be recognised as different ones

提交回复
热议问题