07 2023 档案

摘要:| 主机名 | IP地址 | Pod 网段 | Service 网段 | | | | | | | master | 192.168.10.10 | 172.16.0.0/12 | 10.96.0.0/16 | | node1 | 192.168.10.20 | 172.16.0.0/12 | 10. 阅读全文
posted @ 2023-07-29 19:59 Chuyio 阅读(237) 评论(0) 推荐(0)
摘要:``` pipeline { agent { kubernetes { cloud 'kubernetes' yaml ''' apiVersion: v1 Kind: Pod spec: imagePullSecrets: - name: harbor-admin containers: - na 阅读全文
posted @ 2023-07-28 19:44 Chuyio 阅读(48) 评论(0) 推荐(0)
摘要:一步到胃! ``` cat /etc/ssh/ssh_config Host * SendEnv LANG LC_* IPQoS=throughput TCPKeepAlive yes AddKeysToAgent yes UseKeychain yes ServerAliveInterval 15 阅读全文
posted @ 2023-07-25 21:40 Chuyio 阅读(377) 评论(0) 推荐(0)
摘要:一般删除步骤为:先删pod再删pvc最后删pv 但是遇到pv始终处于“Terminating”状态,而且delete不掉 1、查看pvc被哪个pod使用 ``` [root@hadoop03 storageclass]# kubectl describe pvc PVC-NAME | grep Mo 阅读全文
posted @ 2023-07-25 17:51 Chuyio 阅读(618) 评论(0) 推荐(0)
摘要:之前部署过一套监控 ![](https://img2023.cnblogs.com/blog/1138462/202307/1138462-20230725123256597-72054531.png) 因为是本地测试环境,资源不太够,想着进行删除命名空间monitoring ``` [root@k 阅读全文
posted @ 2023-07-25 12:52 Chuyio 阅读(167) 评论(0) 推荐(0)
摘要:容器状态一直重启 ``` [root@k8s-master01 sonarqube]# kubectl get pod -n ops NAME READY STATUS RESTARTS AGE gitlab-0 1/1 Running 0 170m pgsql-0 0/1 CrashLoopBac 阅读全文
posted @ 2023-07-25 00:40 Chuyio 阅读(826) 评论(0) 推荐(0)
摘要:daemon.json 文档说明: docker安装后默认没有daemon.json这个配置文件,需要进行手动创建,docker不管是在哪个平台以何种方式启动, 默认都会来这里读取配置,使用户可以统一管理不同系统下的 docker daemon 配置。 如果在daemon.json文件中进行配置,需 阅读全文
posted @ 2023-07-24 13:45 Chuyio 阅读(46907) 评论(3) 推荐(4)
摘要:创建ingress报错如下 ``` [root@k8s-master01 gitlab]# kubectl apply -f 03-gitlab-ingress.yaml Error from server (InternalError): error when creating "03-gitla 阅读全文
posted @ 2023-07-23 21:30 Chuyio 阅读(3638) 评论(0) 推荐(0)
摘要:# Pod 相关问题及排查 ### Pod 无法启动,如何查找原因? * 使用 `kubectl describe pod [pod_name] -n [namespace_name]` 命令查看该 Pod 的状态信息,检查容器的状态和事件信息,判断是否出现问题。 * 使用 `kubectl log 阅读全文
posted @ 2023-07-19 19:46 Chuyio 阅读(347) 评论(0) 推荐(0)
摘要:## 具体现象 ![](https://img2023.cnblogs.com/blog/1138462/202307/1138462-20230715122734672-1948661564.jpg) 多次重启之后还是不行,提示让进入紧急模式或退出 ## 排查原因 根据提示输入journalctl 阅读全文
posted @ 2023-07-15 12:52 Chuyio 阅读(4138) 评论(0) 推荐(0)