gpt4 book ai didi

kubernetes - 注册新的istioctl配置文件

转载 作者:行者123 更新时间:2023-12-02 12:01:41 30 4
gpt4 key购买 nike

我想用istioctl安装istio。我的自定义项很多,因此我认为使用以下语法不会有所帮助:istioctl manifest apply --set addonComponents.grafana.enabled=true
我认为最好的方法是从istio-1.5.1/install/kubernetes/operator/profiles复制配置文件

如何将自定义配置文件添加到:

[root@localhost profiles]# istioctl profile list
Istio configuration profiles:
remote
separate
default
demo
empty
minimal

这样我就可以: istioctl manifest apply --set profile=mynewprofile

最佳答案

istio manifests apply --set addonComponents.grafana.enabled=true将转换为

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
addonComponents:
grafana:
enabled: true

Istio使用CR IstioOperator传递安装值。列出 here的所有自定义选项均可用。在其文档中 Installation Configuration Profiles下以及在 releases中的 install/kubernetes/operator/profiles下可以找到一些示例。

您可以通过引用另一个CR的路径来创建自定义配置文件。假设您将上面的文件转换为a-new-profile.yaml。
istioctl manifest apply --set installPackagePath=< path to istio releases >/istio-1.5.1/install/kubernetes/operator/charts \
--set profile=path/to/a-new-profile.yaml

之后,您将设置新的配置文件并可以使用。有关更多信息,请参见其 install-from-external-charts部分。

关于kubernetes - 注册新的istioctl配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60873188/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com