【发布时间】:2021-12-22 04:48:42
【问题描述】:
我正在尝试创建一个使用 chaostoolkit 创建节点的实验
实验用yaml
version: 1.0.0
title: What happens if we create a node
description: All the instances are distributed among healthy nodes and the applications are healthy
tags:
- k8s
- deployment
- node
steady-state-hypothesis:
title: Nodes are indestructible
probes:
- name: all-apps-are-healthy
type: probe
tolerance: true
provider:
type: python
func: all_microservices_healthy
module: chaosk8s.probes
arguments:
ns: qs-aks-dev
method:
- type: action
name: create-node
provider:
type: python
func: create_node
module: chaosk8s.node.actions
pauses:
after: 10
~
~
执行实验时出现以下错误
Action: create-node
[2021-11-09 13:15:17 ERROR] => failed: chaoslib.exceptions.ActivityFailed: Creating new node failed: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Node \"\" is invalid: metadata.name: Required value: name or generateName is required","reason":"Invalid","details":{"kind":"Node","causes":[{"reason":"FieldValueRequired","message":"Required value: name or generateName is required","field":"metadata.name"}]},"code":422}
谁能帮我写这个实验
【问题讨论】:
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
-
这方面有什么更新吗?你能更新问题的状态吗?如果解决了您的问题,请投票或将其标记为答案。这就是 SO 的工作原理。也分享你的答案。
标签: chaos spring-boot-chaos-monkey