设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 964|回复: 1
收起左侧

[题库] K8S-Kubernetes题库

[复制链接]
发表于 2022-10-11 11:10:09 | 显示全部楼层 |阅读模式
source <(kubectl completion bash)
1.Set configuration context $kubectl config use-context k8s
Monitor the logs of Pod foobar and Extract log lines corresponding to error unable-to-access-website Write them

to

/opt/KULM00201/foobar
监控 foobar Pod 的日志,提取 unable-to-access-website 相应的行写入到/opt/KULM00201/foobar 文件中
解答:
#kubectl logs foobar | grep ‘unable-to-access-website’ > /opt/KULM00201/foobar
备注:
撤销 taint
kubectl taint node vms51.rhce.cc node-role.kubernetes.io/master-

K8S-Kubernetes题库.pdf (671.17 KB, 下载次数: 22, 售价: 1 个鸿鹄币)

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-5-6 14:23 , Processed in 0.085692 second(s), 12 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表