Install with Helm [Experimental]
Follow this guide to install and configure an Istio mesh using Helm for in-depth evaluation.
The Helm charts used in this guide are the same underlying charts used when installing Istio via Istioctl or the Operator.
Prerequisites
Perform any necessary platform-specific setup.
Check the Requirements for Pods and Services.
Install a Helm client with a version higher than 3.1.1.
The commands in this guide use the Helm charts that are included in the Istio release package.
Installation steps
Change directory to the root of the release package and then follow the instructions below.
Create a namespace
istio-system
for Istio components:$ kubectl create namespace istio-system
Install the Istio base chart which contains cluster-wide resources used by the Istio control plane:
$ helm install --namespace istio-system istio-base manifests/charts/base
Install the Istio discovery chart which deploys the
istiod
service:$ helm install --namespace istio-system istiod manifests/charts/istio-control/istio-discovery
(Optional) Install the Istio ingress gateway chart which contains the ingress gateway components:
$ helm install --namespace istio-system istio-ingress manifests/charts/gateways/istio-ingress
(Optional) Install the Istio egress gateway chart which contains the egress gateway components:
$ helm install --namespace istio-system istio-egress manifests/charts/gateways/istio-egress
Verifying the installation
Ensure all Kubernetes pods in
istio-system
namespace are deployed and have aSTATUS
ofRunning
:$ kubectl get pods -n istio-system
Upgrading using Helm
Before upgrading Istio in your cluster, we recommend creating a backup of your custom configurations, and restoring it from backup if necessary:
$ kubectl get crds | grep 'istio.io' | cut -f1-1 -d "." | \
xargs -n1 -I{} sh -c "kubectl get --all-namespaces -o yaml {}; echo ---" > $HOME/ISTIO_RESOURCE_BACKUP.yaml
You can restore your custom configuration like this:
$ kubectl apply -f $HOME/ISTIO_RESOURCE_BACKUP.yaml
Migrating from non-Helm installations
If you’re migrating from a version of Istio installed using istioctl
or
Operator to Helm, you need to delete your current installation and re-install
Istio using Helm as described above.
You can follow steps mentioned in the Istioctl uninstall guide or Operator uninstall guide depending upon your installation method.
In place upgrade
You can perform an in place upgrade of Istio in your cluster using the Helm upgrade workflow.
Upgrade the Istio base chart:
$ helm upgrade --namespace istio-system istio-base manifests/charts/base
Upgrade the Istio discovery chart:
$ helm upgrade --namespace istio-system istiod manifests/charts/istio-control/istio-discovery
(Optional) Upgrade the Istio ingress or egress gateway charts if installed in your cluster:
$ helm upgrade --namespace istio-system istio-ingress manifests/charts/gateways/istio-ingress $ helm upgrade --namespace istio-system istio-egress manifests/charts/gateways/istio-egress
Canary Upgrade
You can install a canary version of Istio control plane to validate that the new version is compatible with your existing configuration and data plane using the steps below:
Install a canary version of the Istio discovery chart by setting the revision value:
$ helm install --namespace istio-system istiod-canary manifests/charts/istio-control/istio-discovery --set revision=canary
Verify that you have two versions of
istiod
installed in your cluster:$ kubectl get pods -n istio-system -l app=istiod -L istio.io/rev NAME READY STATUS RESTARTS AGE REV istiod-5649c48ddc-dlkh8 1/1 Running 0 71m default istiod-canary-9cc9fd96f-jpc7n 1/1 Running 0 34m canary
Follow the steps here to test or migrate existing workloads to use the canary control plane.
Once you have verified and migrated your workloads to use the canary control plane, you can uninstall your old control plane:
$ helm delete --namespace istio-system istiod
Uninstall
You can uninstall Istio and its components by uninstalling the charts installed above.
List all the Istio charts installed in
istio-system
namespace:$ helm ls --namespace istio-system
(Optional) Delete Istio ingress/egress chart:
$ helm delete --namespace istio-system istio-egress $ helm delete --namespace istio-system istio-ingress
Delete Istio discovery chart:
$ helm delete --namespace istio-system istiod
Delete Istio base chart:
$ helm delete --namespace istio-system istio-base
Delete the
istio-system
namespace:$ kubectl delete namespace istio-system
Deleting CRDs installed by Istio
Deleting CRDs permanently removes any Istio resources you have created in your cluster. To permanently delete Istio CRDs installed in your cluster:
$ kubectl get crd | grep --color=never 'istio.io' | awk '{print $1}' \
| xargs -n1 kubectl delete crd