当前位置:网站首页>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
...边栏推荐
- 在腾讯云容器服务Node上执行 kubectl
- Matlab memory variable management command
- 使用onvif协议操作设备
- Comment réaliser des tests automatisés pour les tests logiciels embarqués?
- Solution: jupyter notebook does not pop up the default browser
- Typescript learning summary
- How can UI automated testing get out of trouble? How to embody the value?
- 面试题总结(2) IO模型,集合,NIO 原理,缓存穿透,击穿雪崩
- Software testing e-commerce projects that can be written into your resume, don't you come in and get it?
- 栈,单调栈,队列,单调队列
猜你喜欢
The normal one inch is 25.4 cm, and the image field is 16 cm

Stack, monotone stack, queue, monotone queue

Probability theory: application of convolution in calculating moving average

Software testing redis database

I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation

Solve the problem that pycharm Chinese input method does not follow

12. Nacos server service registration of source code analysis of Nacos service registration

你真的需要自动化测试吗?

Lecture 1 number field

Résumé des questions d'entrevue (2) Modèle io, ensemble, principe NiO, pénétration du cache, avalanche de rupture
随机推荐
Qt:qss custom qlistview instance
"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years
2022 pinduogai 100000 sales tutorial
QT: QSS custom qtoolbar and qtoolbox instances
My understanding of testing (summarized by senior testers)
如何让让别人畏惧你
线性表的双链表
The highest monthly salary of 18K has a good "mentality and choice", and success is poor "seriousness and persistence"~
Qt:qss custom qlineedit instance
AIDL
可以写进简历的软件测试电商项目,不进来get一下?
12. Nacos server service registration of source code analysis of Nacos service registration
行业唯一!法大大电子合同上榜36氪硬核科技企业
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
Definition and properties of summation symbols
Unique in the industry! Fada electronic contract is on the list of 36 krypton hard core technology enterprises
17K薪资要什么水平?来看看95后测试工程师的面试全过程…
8年测试工程师总结出来的《测试核心价值》与《0基础转行软件测试超全学习指南》
搭建ADG后,实例2无法启动 ORA-29760: instance_number parameter not specified
Is pinduogai's sales safe in 2022?