配置多用户连接k8s
配置多用户连接k8s
·
前言
为了方便管理、维护k8s集群,配置多用户切换连接k8s
配置
]# mkdir /root/.kube/
]# cat > /root/.kube/config <<-EOF
-n devapiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM1ekNDQWMrZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJeU1EZ3dOREUxTkRreE0xb1hEVE15TURnd01URTFORGt4TTFvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBS0NWCklrelVUMG1Gc3FnSGt5ZUcwOHE2MnlsaFlLOUJnV1Q1VkRGVzVMNjlSbitqWnlmK05aYkVKTDNuZHZ4Y2FHOEMKNFZPYW51WXpHa1dHejhESVRNQ0RjY0hXdER0Vzh0dytPMjN2KzZ3aEMrY1FITDFkMytNTkc4L1Q5Vlh1ODVmWAptdVZZWlRieVZSZVhqV0k4eFRrSnA0ZGZualVCVitYTzdXQWEwZVlIVzZQYmJHeGR3YTJFbitCMWt2ejhzcW4yCmQycjEvbnJkUk1SaWpub29CYUcyVGE1dUtnaTAxdUVrd294NG5kd1J2SG1jV3FoOTJjYW1IV0NyZ3RLSFBhZGIKZDk0WTZsdlp4S05JUnpPTk5TWDdQZ2ZPcDdpYnQxWWNaRUx2U2t4OWxhSmtMQTR4ZVNKVzFVR1BjN3R5YVY2dApUVHZ6cVJpcW1LdnAwSlRiamhrQ0F3RUFBYU5DTUVBd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0hRWURWUjBPQkJZRUZFaElld050TWo1WEo1WkpMbnhkUnQxRVVGZlNNQTBHQ1NxR1NJYjMKRFFFQkN3VUFBNElCQVFCSU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eGtnV0dFb3FFMTFaNTJueVpteEhHRmRHZXN1L25acm1qc1krCnlzRDhkNy9Xc1BFZWJpSmxhVVJYeXVLaytiV3NjS0VRSk9oV0FzaEkyYlhYaGJyUHE1eHBnWitpYS85Qm1YcG4KYUF1RzZJVXM2VkZVU01pK0FmMXlzcWtsMnBOdU02WGFyV05RMmd6TExaYS9VYUlpQ2JJQjBjdmF5cWJxNWpDUApJN3JnM0JmdGFEK2MrcmRvR1ZVQ0F3RUFBYU5DTUVBd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0hRWURWUjBPQkJZRUZBb2VBcmdJMFRyMlQ2YlpDRnkwZ0gwek85ODFNQTBHQ1NxR1NJYjMKRFFFQkN3VUFBNElCQVFCVnNwLzd3alczKy9HRWxwNFlIUFA1MGg0cWNMMkc1ZlBDVG40L2VrNWQ1UjV5UXlmZgpiUHc2cFBtbkxKbjdxTmlXbWRJayszNlpkTHRRdWVGTEZySkNQek1mdTkrUEVPVVNlOXpmZzRoaWJJMzRuanByCmRUR25Fbnc1R29UaDJURlU1akM5Ly9SWE9wM1Q5aTg2T3NnZC9HUXJGTmpsVGxmUllTdUQwNXJHenBCczRVN2kKYmJ5VHM3UDlMT28xRFB6elg3N3F4VWxXR0dSTk1TbldiWDcycFdsNFphWFMrbnM3cHF0S2g0MDYrTTFEK21MRQo1RmMzck9qVVNMaWswanR4OE5QRWRIRnlVOTVaanR4YnEwWHYxNmkvWmdqelBNT0c3RUFKMjFJZTJFOWJLZjFXCis0N3NvVEp5VFd3VklXQU1wZnZUcWNEaUlYL01PendFdmU1bQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
server: https://192.168.93.13:6443
name: test.cluster.local
contexts:
- context:
cluster: dev.cluster.local
user: dev-kubernetes-admin
name: dev-kubernetes-admin@cluster.local
- context:
cluster: test.cluster.local
user: test-kubernetes-admin
name: test-kubernetes-admin@cluster.local
current-context: kubernetes-admin@cluster.local
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UgzOXAzVGtxbWlIQzhTb1dpRzAKVi95L2pnWHArRzU4OHdzNFBWa08xdy9wMktGa0UwNUtrWnZ0SDgwZTVXOEhtdUJ0QVJDQ3lZY20vV0FTbUhwWQpxQkFKZVNyaDU2cXJmSkorVWNxRTJiakU3VjViRDZNcXlYOGYxaWFjdGZmbGd6eVlnSXRZS2c9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
EOF
切换k8s的dev环境
]# kubectl config use-context dev-kubernetes-admin@cluster.local
切换k8s的test环境
]# kubectl config use-context test-kubernetes-admin@cluster.local
结语
… …
更多推荐
已为社区贡献25条内容
所有评论(0)