[root@k8s-master-node1 ~]# cat istio.yaml apiVersion: networking.istio.io/v1alpha3 kind: Sidecar metadata: name: default namespace: prod-us1 spec: egress: - hosts: - "prod-us1.default" - "prod-apis.default" - "istio-system.default"Error from server: error when creating "istio.yaml": admission webhook "validation.istio.io" denied the request: configuration is invalid: 3 errors occurred: * host must be of form namespace/dnsName * host must be of form namespace/dnsName * host must be of form namespace/dnsName
时间: 2023-12-14 10:35:43 浏览: 161
这个错误提示是因为你在配置 Istio 的 egress 时,hosts 的格式不正确。host 必须是 namespace/dnsName 的形式。你可以像下面这样修改:
```
apiVersion: networking.istio.io/v1alpha3
kind: Sidecar
metadata:
name: default
namespace: prod-us1
spec:
egress:
- hosts:
- "default/prod-us1"
- "default/prod-apis"
- "default/istio-system"
```
这样修改后再试一下就应该没有问题了。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)