Skip to the content.

Ssh

2023-05-31 00:00:00 +0000

修改ssh的key以及fingerprint

rm -rf /etc/ssh/ssh_host_*
ssh-keygen -A
# client端删除know_hosts里面对应的信息
ssh-keygen -R 192.168.1.1

多网卡设置

2023-05-31 00:00:00 +0000

多网卡路由设置(source-based routing, policy-based routing)


Linux_network

2023-05-31 00:00:00 +0000

网络


Iptables

2023-05-31 00:00:00 +0000

iptables


Calico

2023-05-31 00:00:00 +0000

calico网络解析

https://www.ffutop.com/posts/2019-12-24-how-calico-works/


Tips

2023-05-31 00:00:00 +0000

通过json patch的时候

  1. 如果key包含/, 需要将/转义成~1
  2. 如果values是个json字符串,需要将json字符串里的"转义成\"
  3. 如果返回错误the server rejected our request due to an error in our request,需要检查一下,父节点是否存在。比如 add "/metadata/annotations/foo",时,需要确认"/metadata/annotations"是否存在,如果不存在,需要添加
[
  {"op":"add","path":"/metadata/annotations","value":{}},
  {"op":"add","path":"/metadata/annotations/foo","value": "bar"}
]

k8s入门-基础概念

2023-05-31 00:00:00 +0000

k8s相关概念


Promethues

2023-05-31 00:00:00 +0000

在k8s中上报数据给Promethues


Networking

2023-05-31 00:00:00 +0000

图解Kubernetes网络(一)

【编者的话】本文阐述了Kubernetes网络模型,并详细描述了Kubernetes Pods在节点内和节点间的通信方式,帮助读者在碰到Kubernetes网络问题时从容应对。


Metrics

2023-05-31 00:00:00 +0000

kubectl top node: