当前位置:网站首页>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
...边栏推荐
- AIDL
- 浅析-JMM内存模型
- 如何成为一名高级数字 IC 设计工程师(1-4)Verilog 编码语法篇:表达式
- Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
- Using activity to realize a simple inputable dialog box
- 表空间创建管理及控制文件管理
- Word line and bit line
- 2021 postgraduate entrance examination mathematics 2 linear algebra
- Exclusive analysis | truth about resume and interview
- What are the strengths of "testers"?
猜你喜欢

I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it

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

Lecture 1 number field

MAUI Developer Day in GCR

Solution: jupyter notebook does not pop up the default browser

在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获

【Proteus仿真】74HC154 四线转12线译码器组成的16路流水灯

Cause: org. apache. ibatis. builder. Builderexception: error parsing SQL mapper configuration problem analysis

(二)进制

How can UI automated testing get out of trouble? How to embody the value?
随机推荐
QT: QSS custom qtoolbutton instance
线性表顺序表综合应用题P18
QT: QSS custom qtreeview instance
QT: QSS custom qtableview instance
BI技巧丨权限轴
Tablespace creation management and control file management
Summary of the history of Mathematics
公司测试部门来了个00后卷王之王,老油条感叹真干不过,但是...
Is pinduogai's sales safe in 2022?
2. Hal hardware abstraction layer
How can UI automated testing get out of trouble? How to embody the value?
我对测试工作的一些认识(资深测试人员总结)
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
Overview of testing theory
高精度室内定位技术,在智慧工厂安全管理的应用
软件测试工程师的5年之痒,讲述两年突破瓶颈经验
Error installing the specified version of pilot
AMS Series 1 - AMS startup process
Qt:qss custom qpprogressbar instance
Using activity to realize a simple inputable dialog box