chaosmesh文档

目录

1.混沌网格(Chaos Mesh)的设计和工作原理

2.官方文档

3.Chaos Mesh - 让应用跟混沌在 Kubernetes 上共舞

4.crd的运行必须有对应的控制器

5.创建crd资源

6.如何查看crd资源?

7.文档:

8.helm v3没有--name参数

9.超看pod的标签:

10.演练:

11.


1.混沌网格(Chaos Mesh)的设计和工作原理

https://www.kubernetes.org.cn/7443.html

2.官方文档

https://chaos-mesh.org/docs/

3.Chaos Mesh - 让应用跟混沌在 Kubernetes 上共舞

https://pingcap.com/blog-cn/chaos-mesh/

4.crd的运行必须有对应的控制器

5.创建crd资源

kubectl apply -f xxx

6.如何查看crd资源?

kubectl get crds

7.文档:

Chaos Mesh - 让应用跟混沌在 Kubernetes 上共舞:https://pingcap.com/blog-cn/chaos-mesh/

混沌网格(Chaos Mesh)的设计和工作原理https://www.kubernetes.org.cn/7443.html

helm官方文档:https://www.kubernetes.org.cn/7443.html

Kuberneters(K8s)CRD资源详解:https://www.jianshu.com/p/cc7eea6dd1fb

chaos mesh官方文档:https://chaos-mesh.org/docs/development_guides/develop_a_new_chaos/

https://github.com/chaos-mesh/chaos-mesh

https://www.bilibili.com/video/BV1vZ4y137eT?from=search&seid=14287874291108213174

https://github.com/MistShi/chaos-mesh

chaosmesh 教程学习:https://yisaer.gitbook.io/chaos-mesh-contributing-tutorials/da-jian-chaosmesh-ben-di-kai-fa-huan-jing/le-jie-kubernetes-yu-xiang-guan-gong-ju

helm学习:https://shanyue.tech/k8s/helm.html

helm官方文档:https://helm.sh/zh/docs/faq/

k8s标签讲解:https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/common-labels/

玩helm不得不会的helm:https://zhuanlan.zhihu.com/p/79046244

operator:https://coreos.com/operators/

operator:http://dockone.io/article/8769

使用 helm 部署 k8s 资源:https://juejin.cn/post/6844903986496012301

kubectl create和kubectl apply区别:https://www.yuque.com/simonalong/ruanjian/dlml8m

8.helm v3没有--name参数

可通过helm install --help查看可用参数;

执行install,eg:

helm install helm/chaos-mesh --name=chaos-mesh --namespace=chaos-testing 

会报:Error: unknown flag: --name

变为:

helm install chaos-mesh helm/chaos-mesh --namespace=chaos-testing

9.超看pod的标签:

https://blog.csdn.net/qq_37377136/article/details/108556188

10.演练:

step1:跟本地安装helm,安装helm v3,集client和Server(Tiller)于一体;helm version 查看版本;

step2:安装chaos mesh到k8s集群上;方式:git clone 下拉chaos mesh,然后apply -f(创建 CRD 资源),最后用helm安装,helm install 名字 xxxxxxxxxx;

step3:检查chaos mesh状态:kubectl get pods --namespace chaos-testing -l app.kubernetes.io/instance=chaos-mesh

step4:投放异常;编写pod-kill行为的yaml,然后apply -f ,之后观察异常是否符合预期;开头:apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos

step5:删除资源;kubectl delete -f xxx.yaml

11.

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值