07 2021 档案

摘要:参考链接: https://www.cnblogs.com/centos-python/articles/10886525.html https://blog.csdn.net/tiger435/article/details/78489369 https://www.ziji.work/kuber 阅读全文
posted @ 2021-07-29 19:28 salami_china 阅读(69) 评论(0) 推荐(0) 编辑
摘要:Ticker 是一个定时触发的计时器,它会以一个间隔 (interval) 往 channel 发送一个事件(当前时间),而 channel 的接收者可以以固定的时间间隔从 channel 中读取事件。 Demo 示例: package main import ( "fmt" "time" ) fu 阅读全文
posted @ 2021-07-21 14:52 salami_china 阅读(127) 评论(0) 推荐(0) 编辑
摘要:参考链接:https://blog.csdn.net/u011563903/article/details/88593251 容器里执行,ip link show eth0 命令,然后可以看到 116: eth0@if117,其中116是eth0接口的index, 117是和他pair的veth的i 阅读全文
posted @ 2021-07-19 16:27 salami_china 阅读(75) 评论(0) 推荐(0) 编辑
摘要:四个POD流量分流,iptables 规则如下 -A KUBE-SVC-W6WAXM5BH6NL6XVI -m comment --comment "default/stilton:http" -m statistic --mode random --probability 0.2500000000 阅读全文
posted @ 2021-07-19 14:59 salami_china 阅读(287) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/likunwen_001/article/details/44622355 Linux防火墙内的策略动作有REJECT和DROP两种,区别如下: 1、REJECT动作会返回一个拒绝(终止)数据包(TCP FIN或UDP-ICMP-PORT-UNR 阅读全文
posted @ 2021-07-16 16:41 salami_china 阅读(666) 评论(0) 推荐(0) 编辑
摘要:字段定义如下: // NetworkPolicySpec provides the specification of a NetworkPolicy type NetworkPolicySpec struct { // Selects the pods to which this NetworkPo 阅读全文
posted @ 2021-07-16 15:16 salami_china 阅读(125) 评论(0) 推荐(0) 编辑
摘要:问题现象: The node was low on resource: ephemeral-storage. Container rama-manager was using 104Ki, which exceeds its request of 0. 原因磁盘空间占用过多。 解决思路参考链接: h 阅读全文
posted @ 2021-07-16 10:26 salami_china 阅读(2308) 评论(0) 推荐(0) 编辑
摘要:# 在网桥上,tap1出去的包drop iptables -A FORWARD -m physdev --physdev-out tap1 --physdev-is-bridged -j DROP --physdev-is-bridged:匹配网桥流量 --physdev-out:网桥出接口 参考链 阅读全文
posted @ 2021-07-15 14:12 salami_china 阅读(443) 评论(0) 推荐(0) 编辑
摘要:参考链接:https://gobomb.github.io/post/learning-linux-veth-and-bridge/ 由于环境搭建了docker: FORWARD 链默认策略被 docker 设置成 DROP。 执行:iptables -P FORWARD ACCEPT 阅读全文
posted @ 2021-07-05 19:15 salami_china 阅读(624) 评论(0) 推荐(0) 编辑
摘要:# Linux / macOS export GOPROXY=https://goproxy.io # Windows $env:GOPROXY = "https://goproxy.io" 参考链接:https://blog.csdn.net/sinat_38068807/article/deta 阅读全文
posted @ 2021-07-02 13:54 salami_china 阅读(241) 评论(0) 推荐(0) 编辑
摘要:问题:default-scheduler 0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate. 解决:kubectl taint n 阅读全文
posted @ 2021-07-01 20:13 salami_china 阅读(1445) 评论(0) 推荐(0) 编辑
摘要:问题:build constraints exclude all Go files in 解决:export GOOS="linux" 参考链接:https://www.h5w3.com/102231.html 阅读全文
posted @ 2021-07-01 18:46 salami_china 阅读(12337) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示