Reputation: 1
Is there any command that can be used to apply new changes, because when I apply new changes with:
istioctl apply manifest --set XXX.XXXX=true
It overwrites the current value and set it to default.
Upvotes: 0
Views: 2019
Reputation: 615
the way ive managed to upgrade is this:
its not ideal by far but istio does a relatively bad job on dealing with customizations.
Upvotes: 0
Reputation: 8830
That´s might not work because you have used istioctl manifest apply
, which is deprecated and it´s istioctl install
since istio 1.6 version.
Quoted from the documentation
Note that istioctl install and istioctl manifest apply are exactly the same command. In Istio 1.6, the simpler install command replaces manifest apply, which is deprecated and will be removed in 1.7.
AFAIK there are 2 ways to update new changes in istio
To enable the Grafana dashboard on top of the default profile, set the addonComponents.grafana.enabled configuration parameter with the following command:
$ istioctl install --set addonComponents.grafana.enabled=true
In general, you can use the --set flag in istioctl as you would with Helm. The only difference is you must prefix the setting paths with values. because this is the path to the Helm pass-through API in the IstioOperator API.
In addition to installing any of Istio’s built-in configuration profiles, istioctl install provides a complete API for customizing the configuration.
The IstioOperator API The configuration parameters in this API can be set individually using --set options on the command line. For example, to enable the control plane security feature in a default configuration profile, use this command:
$ istioctl install --set values.global.controlPlaneSecurityEnabled=true
Alternatively, the IstioOperator configuration can be specified in a YAML file and passed to istioctl using the -f option:
$ istioctl install -f samples/operator/pilot-k8s.yaml
For backwards compatibility, the previous Helm installation options, with the exception of Kubernetes resource settings, are also fully supported. To set them on the command line, prepend the option name with “values.”. For example, the following command overrides the pilot.traceSampling Helm configuration option:
$ istioctl install --set values.pilot.traceSampling=0.1
Helm values can also be set in an IstioOperator CR (YAML file) as described in Customize Istio settings using the Helm API, below.
If you want to set Kubernetes resource settings, use the IstioOperator API as described in Customize Kubernetes settings.
Related documentation and examples for istio operator.
Upvotes: 4