当前位置:网站首页>Execute kubectl on Tencent cloud container service node
Execute kubectl on Tencent cloud container service node
2022-07-03 11:15:00 【K8s introductory tutorial】
Default Container services Of Node Can't execute on kubectl , Cluster access credentials need to be configured , If you turn it on Intranet access It's easy to solve it according to the official tutorial , Here is an introduction to the case without opening intranet access , How to be in Node On the implementation kubectl.
Now Intranet CLB There's a charge , The default intranet access method of using container services directly is a little insufficient , Make a simple change apiserver The address of , That is to say kubectl visit .
The default node cannot be used kubectl Access to the
# kubectl get node
error: You must be logged in to the server (Unauthorized)Operate as follows
1. obtain APIServer Of Address
stay ~/.kube/config This line of configuration can be found in , recorded , The next step is to use
server: https://169.254.128.16:60002If not , It can also be obtained from the command line
[[email protected] .kube]# netstat -tnp | grep kube
tcp 0 0 10.1.0.20:58804 169.254.128.16:60002 ESTABLISHED 2240947/kubelet2. Modify the access credentials of the connection cluster ~/.kube/config
In the cluster basic information page , Copy the screenshot above kubeconfig part To ~/.kube/config in , modify server Address Obtained for the previous step APIServer Address .
3. verification kubectl
Successful visit
# kubectl get node
NAME STATUS ROLES AGE VERSION
10.1.0.99 Ready <none> 2y200d v1.20.6-tke.20
...边栏推荐
猜你喜欢

MAUI Developer Day in GCR

Résumé des questions d'entrevue (2) Modèle io, ensemble, principe NiO, pénétration du cache, avalanche de rupture

【obs】obs的ini格式的ConfigFile

有赞CTO崔玉松:有赞Jarvis核心目标是使产品变得更加聪明和可靠

数据库增量备份 - DB INCR DB FULL

我对测试工作的一些认识(资深测试人员总结)

QT: QSS custom qtabwidget and qtabbar instances

Multiple IO transfer - preamble

QT: QSS custom qtreeview instance

进程与线程
随机推荐
1. Hal driven development
Unique in the industry! Fada electronic contract is on the list of 36 krypton hard core technology enterprises
ConstraintLayout跟RelativeLayout嵌套出现的莫名奇妙的问题
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
Qt:qss custom QSlider instance
数据库增量备份 - DB INCR DB FULL
CorelDRAW Graphics Suite 2022新版功能详情介绍
What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
Activity and fragment lifecycle
I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation
Word line and bit line
Struct function & function pointer
Qt:qss custom qheaderview instance
redis那些事儿
可以写进简历的软件测试电商项目,不进来get一下?
软件测试(测试用例)编写之俗手、本手、妙手
浅析-JMM内存模型
Project management essence reading notes (6)
Communication software development and Application
Do you really need automated testing?