Kubernetes 注册新的OCTL配置文件
我想用istioctl安装istio。我的定制将是大量的,因此我认为使用以下语法是没有帮助的:Kubernetes 注册新的OCTL配置文件,kubernetes,istio,Kubernetes,Istio,我想用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 configur
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清单应用--set profile=mynewprofile
istio清单应用--set addonComponents.grafana.enabled=true
将转换为
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
addonComponents:
grafana:
enabled: true
Istio使用CR IstioOperator传递安装值。列出的所有自定义选项都可用。一些示例可以在其文档中的install/kubernetes/operator/profiles
下找到
您可以通过引用另一个CR的路径来创建自定义配置文件。假设您将上面的文件转换为-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
istioctl清单应用——设置installPackagePath=/istio-1.5.1/install/kubernetes/operator/charts\
--设置profile=path/to/a-new-profile.yaml
之后,您就可以设置新的配置文件并准备好使用了。有关更多信息,请参见他们的部分 谢谢你,伙计。我知道你在这里说的一些话为我澄清了这一点。如何获取当前值,如
addonComponents.grafana.enabled