goodluck 发表于 2022-10-11 11:10:09

K8S-Kubernetes题库

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-



r98525068 发表于 2022-10-11 13:12:40

謝謝分享!

xiaozi1989 发表于 2024-8-1 17:04:16

谢谢分享

weijianing 发表于 2024-8-16 12:05:27

{:6_267:}

weijianing 发表于 2024-8-16 12:05:33

666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

weijianing 发表于 2024-8-16 12:05:40

{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}

weijianing 发表于 2024-8-16 12:05:47

{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}{:6_290:}

weijianing 发表于 2024-8-16 12:05:56

{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}

weijianing 发表于 2024-8-16 12:06:13

{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}{:6_285:}

weijianing 发表于 2024-8-16 12:06:26

{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}{:6_299:}

weijianing 发表于 2024-8-16 12:06:36

{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}{:6_291:}

weijianing 发表于 2024-8-16 12:06:43

{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}{:6_268:}

weijianing 发表于 2024-8-16 12:06:50

{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}{:6_265:}

weijianing 发表于 2024-8-16 12:06:57

{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}{:6_264:}

lixinvic 发表于 2024-9-3 10:47:09

不错 好东西
页: [1] 2
查看完整版本: K8S-Kubernetes题库