Fork me on GitHub
代码改变世界

随笔分类 -  运维

k8s service直接暴露外部访问配置

2021-03-06 10:28 by freefei, 576 阅读, 收藏, 编辑
摘要: # 例如 kubectl edit service kubernetes-dashboard -n kubernetes-dashboard apiVersion: v1 kind: Service metadata: creationTimestamp: "2021-03-05T09:17:16Z 阅读全文

把现有运行的容器的镜像导出打包命令

2021-01-06 18:07 by freefei, 350 阅读, 收藏, 编辑
摘要: 把现有运行的容器的镜像导出打包 save_images.sh 文件内容如下 #!/bin/bash IMAGES_LIST=($(docker ps --format "table {{.Image}}")) IMAGES_NM_LIST=($(docker ps --format "table { 阅读全文

centos7 双网卡配置 默认数据走外网 指定ip上内网

2021-01-05 20:03 by freefei, 1164 阅读, 收藏, 编辑
摘要: [root@B4-05-5D-54-21-D6 network-scripts]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default homerouter.cpe 阅读全文

通过helm 安装 harbor 不成功问题处理

2019-12-19 19:15 by freefei, 1508 阅读, 收藏, 编辑
摘要: helm 安装 harbor 安装不成功处理过程 通过安装脚本 执行后 总有一批容器启动不成功 通过各种排查 确定是由于数据库 harbor harbor database 0 的 postgres 有问题引起的 解决问题的 根源在于解决 postgres 启动问题 通过查看日志 发现是 postg 阅读全文

k8s 添加ingress 暴露服务

2019-12-19 18:54 by freefei, 729 阅读, 收藏, 编辑
摘要: vim file.yaml 阅读全文

haproxy mod tcp配置 按hostname 来定向服务器

2018-11-10 11:52 by freefei, 824 阅读, 收藏, 编辑
摘要: 需求 tcp 链接服务器, 服务器端根据不同的域名 定向到不同的内网服务器上; 参考资料 https://serverfault.com/questions/643131/proxying tcp by hostname https://www.lijiaocn.com/%E6%8A%80%E5%B 阅读全文

tcpdump 命令

2018-07-17 10:20 by freefei, 194 阅读, 收藏, 编辑
摘要: tcpdump 命令 阅读全文
@ https://github.com/ranmufei

守望者舆情监控

守望者舆情监控系统