当前位置:网站首页>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:60002
If 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/kubelet
2. 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
...
边栏推荐
- Cause: org. apache. ibatis. builder. Builderexception: error parsing SQL mapper configuration problem analysis
- Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?
- Hal -- writing hardware drivers
- 高精度室内定位技术,在智慧工厂安全管理的应用
- The highest monthly salary of 18K has a good "mentality and choice", and success is poor "seriousness and persistence"~
- Qt:qss custom qgroupbox instance
- Stack, monotone stack, queue, monotone queue
- Comment réaliser des tests automatisés pour les tests logiciels embarqués?
- "Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years
- 使用onvif协议操作设备
猜你喜欢
. Net core - a queuing system for wechat official account
8年测试总监的行业思考,看完后测试思维认知更深刻
高精度室内定位技术,在智慧工厂安全管理的应用
如何清理v$rman_backup_job_details视图 报错ORA-02030
Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)
反正切熵(Arctangent entropy):2022.7月最新SCI论文
你真的需要自动化测试吗?
What are the strengths of "testers"?
Probability theory: application of convolution in calculating moving average
嵌入式軟件測試怎麼實現自動化測試?
随机推荐
Error installing the specified version of pilot
Inexplicable problems in the nesting of constraintlayout and relativelayout
反正切熵(Arctangent entropy):2022.7月最新SCI论文
Internet Socket (非)阻塞write/read n个字节
How can UI automated testing get out of trouble? How to embody the value?
"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years
The element form shows the relationship between elementary transformation and elementary matrix
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
A simple method of adding dividing lines in recyclerview
有赞CTO崔玉松:有赞Jarvis核心目标是使产品变得更加聪明和可靠
Oracle收回权限 & 创建角色
QT: QSS custom qtableview instance
2021 postgraduate entrance examination mathematics 2 linear algebra
IIS does not take effect after modifying the configuration information
How did I grow up in the past eight years as a test engineer of meituan? I hope technicians can gain something after reading it
QT: QSS custom qtreeview instance
AMS Series 1 - AMS startup process
如何成为一名高级数字 IC 设计工程师(1-3)Verilog 编码语法篇:Verilog 行为级、寄存器传输级、门级(抽象级别)
Software testing e-commerce projects that can be written into your resume, don't you come in and get it?
【Proteus仿真】74HC154 四线转12线译码器组成的16路流水灯