[英]Experiment to create node in kubernetes cluster(AKS) using chaos toolkit
我正在嘗試創建一個使用 Chaostoolkit 創建節點的實驗
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}
誰能幫我寫這個實驗
我認為您以正確的方式使用它,但是
name: create-node
provider:
func: create_node
module: chaosk8s.node.actions
type: python
type: action
但是,看起來它可能無法與前面提到的 AKS 一起使用。
由於某些雲提供商的工作方式,您將無法在它們上有意義地使用它。 例如在 GCE 上,這可能會失敗。
閱讀更多信息: https : //github.com/chaostoolkit/chaostoolkit-documentation/blob/master/sources/drivers/kubernetes.md#create_node
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.