常见问题解答 (FAQ)
Q: I have deployed Chaos Mesh and created PodChaos experiments successfully, but I still failed in creating NetworkChaos/TimeChaos Experiment. The log is shown as below:
The reason is that chaos-controller-manager
failed to connect to chaos-daemon
. You need to first check the Pod network and its .
If everything is in order, maybe you can use the hostNetwork
parameter to fix this problem as follows:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
rules:
- apiGroups: ['']
resources: ['pods', 'namespaces']
verbs: ['get', 'watch', 'list']
- apiGroups:
- chaos-mesh.org
verbs: ['get', 'list', 'watch', 'create', 'delete', 'patch', 'update']
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cluster-manager-binding
subjects:
# Google Cloud user account
- kind: User
name: USER_ACCOUNT
roleRef:
kind: ClusterRole
name: role-cluster-manager-pdmas
The USER_ACCOUNT
above should be your Google Cloud user email.
Q: Daemon throws an error similar to version 1.41 is too new. The maximum supported API version is 1.39
This indicates that the maximum API version that the Docker daemon can accept is 1.39
, but the client in chaos-daemon
uses 1.41
by default. You can choose the following options to solve this problem:
- Upgrade your Docker to a newer version.
- Helm install/upgrade with
--set chaosDaemon.env.DOCKER_API_VERSION=1.39
.
If the error message is similar to the following:
oc adm policy add-scc-to-user privileged -n chaos-testing -z chaos-dns-server
Q: While trying to install Chaos Mesh in OpenShift, the problems regarding authorization blocked the installation process
If the error message is similar to the following:
You need to add privileged scc to default.
oc adm policy add-scc-to-user privileged -n chaos-testing -z chaos-daemon
This issue occurs when you install Chaos Mesh on Kubernetes v1.15 or an earlier version. We use apiextensions.k8s.io/v1
by default, but it was introduced in Kubernetes v1.16 on 2019-09-19.
- Manually create CRD through
https://mirrors.chaos-mesh.org/<chaos-mesh-version>/crd-v1beta1.yaml
. - Use Helm to finish the rest process of installation, and append
--skip-crds
with command.
We suggest upgrading your Kubernetes cluster by referencing Kubernetes .