Kubernetes 初始化集群的时候也会预设4个名字空间:default、kube-system、kube-public、kube-node-lease。我们常用的是前两个,default 是用户对象默认的名字空间,kube-system 是系统组件所在的名字空间。 想要把一个对象放入特定的名字空间,需要在它的 metadata 里添加一个 namespace 字段,比如我
[root@k8scloude1 ~]# systemctl restart kubelet [root@k8scloude1 ~]# systemctl status kubelet ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/kubelet.service.d...
Every day, I usekubectlcommands like get pods to check if my service is running or get a service to find out the port it is listening on, especially when your service is using the ingress feature of Kubernetes. Since many people have asked about sharing more information about Kubernetes, we...
Sharing a namespace By default, krane will prune any resources in the target namespace which have thekubectl.kubernetes.io/last-applied-configurationannotation and are not a result of the current deployment process, on the assumption that there is a one-to-one relationship between application deplo...
Command kube-tmux prints Kubernetes context and namespace to tmux status line.Usage$ kube-tmux -h Usage of kube-tmux: -ctxBg string Context background colour -ctxFg string Context foreground colour -nsBg string Namespace background colour -nsFg string Namespace foreground colour -sepBg string ...
The Visual Web Terminal is a part of Red Hat Advanced Cluster Management, based on the Kui open source project.
kubectl drain <node-name> --delete-emptydir-data --ignore-daemonsets 如何查看app的health check的历史日志? 想查看返回码 应用内记录日志? 查看kubelet日志? 好像也没有持久 如果node not ready了, 如何进入node排查问题? node正常时候, 依赖node exec可以进入. 但是如果node异常了. 只能借助ssh或者云厂商提供...
Kubernetes makes container management easy. However, Kubernetes is a highly complex system, which can make debugging a headache. In this article, I’ll talk about the tools Kubernetes offers to help with troubleshooting, the kubectl command, and how to use it to check Kubernetes logs and their...
localPath:"./size.ts",remotePath:"size.ts",})constcatSize=newremote.Command("checkSize",{connection,create:"cat size.ts",},{dependsOn:sizeFile})exportconstconfirmSize=catSize.stdout;exportconstpublicIp=server.publicIp;exportconstpublicHostName=server.publicDns;exportconsthostnameStdout=hostname....
kube-ps1 adds your current Kubernetes context and namespace to your prompt string. This tool saves you from having to type outkubectl config current-contextevery time you need to check your context or determine your current namespace. This is a simple change that can make interacting with your...