当前位置:网站首页>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
...
边栏推荐
- redis那些事儿
- 如何让让别人畏惧你
- 如何成为一名高级数字 IC 设计工程师(1-2)Verilog 编码语法篇:Verilog 1995、2001、2005 标准
- The highest monthly salary of 18K has a good "mentality and choice", and success is poor "seriousness and persistence"~
- What are the strengths of "testers"?
- QT: QSS custom qtreeview instance
- 2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
- 2. Hal hardware abstraction layer
- Game test related tests a hero's skills (spring moves are asked more questions)
- First line of code kotlin notes
猜你喜欢
字节跳动大裁员,测试工程师差点遭团灭:大厂招人背后的套路,有多可怕?
The element form shows the relationship between elementary transformation and elementary matrix
栈,单调栈,队列,单调队列
有赞CTO崔玉松:有赞Jarvis核心目标是使产品变得更加聪明和可靠
可以写进简历的软件测试电商项目,不进来get一下?
The testing department of the company came to the king of the Post-00 roll, and the veteran exclaimed that it was really dry, but
反正切熵(Arctangent entropy):2022.7月最新SCI论文
MAUI Developer Day in GCR
面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
The highest monthly salary of 18K has a good "mentality and choice", and success is poor "seriousness and persistence"~
随机推荐
12. Nacos server service registration of source code analysis of Nacos service registration
Activity and fragment lifecycle
今晚要修稿子準備發佈。但是,仍卡在這裡,也許你需要的是一個段子。
QT: QSS custom qtreeview instance
大厂技术专家:工程师如何提升沟通能力?
Probability theory: application of convolution in calculating moving average
可以写进简历的软件测试电商项目,不进来get一下?
Solution: jupyter notebook does not pop up the default browser
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
Logstash backup tracks the data records reported
AIDL
Summary of the history of Mathematics
Project management essence reading notes (6)
Definition and properties of summation symbols
(二)进制
Multiple IO transfer - preamble
Commonly used discrete random distribution
Software testing (test case) writing: vulgar, native and skillful
POI excel 单元格换行
数据库增量备份 - DB INCR DB FULL