ibm-istio-remote

by Helm

Helm chartv1.0.5App 1.0.2Apache-2.0

Helm chart needed for remote Kubernetes clusters to join the main Istio control plane

About this chart

Istio-Remote

Istio is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data.

Introduction

This chart is installed on remote clusters to connect with the Istio control plane on a local cluster, to support the Istio multi-cluster feature.

Multicluster functions by enabling Kubernetes control planes running a remote configuration to connect to one Istio control plane. Once one or more remote Kubernetes clusters are connected to the Istio control plane, Envoy can then communicate with the single Istio control plane and form a mesh network across multiple Kubernetes clusters.

Chart Details

This chart will install the security (Citadel) and sidecar injector webhook(optional) components and create a headless service and endpoint for istio-pilot with the remotePilotAddress.

Prerequisites

  • A user with cluster-admin ClusterRole is required to install the chart.
  • Kubernetes 1.9 or newer cluster with RBAC (Role-Based Access Control) enabled is required.
  • Wait for the Istio control plane to finish initializing and then run these operations on the Istio control plane cluster to capture the Istio control-plane service endpoints–e.g. Pilot, Policy, and Statsd Pod IP endpoints.
export PILOT_POD_IP=$(kubectl -n istio-system get pod -l istio=pilot -o jsonpath='{.items[0].status.podIP}')
export POLICY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=policy -o jsonpath='{.items[0].status.podIP}')
export STATSD_POD_IP=$(kubectl -n istio-system get pod -l istio=statsd-prom-bridge -o jsonpath='{.items[0].status.podIP}')
export TELEMETRY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=telemetry -o jsonpath='{.items[0].status.podIP}')
export ZIPKIN_POD_IP=$(kubectl -n istio-system get pod -l app=jaeger -o jsonpath='{range .items[*]}{.status.podIP}{end}')

Then copy these environment variables to each node before using Helm to connect the remote cluster to the Istio control plane.

Resources Required

The chart deploys pods that consume minimum resources as specified in the resources configuration parameters.

Installing the Chart

  1. Create namespace istio-system for the chart:
$ kubectl create ns istio-system
  1. To install the chart with the release name istio-remote in namespace istio-system:
$ helm install ../ibm-istio-remote --name istio-remote  --namespace istio-system --set global.remotePilotAddress=${PILOT_POD_IP} --set global.remotePolicyAddress=${POLICY_POD_IP} --set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} --set global.proxy.envoyStatsd.enabled=true --set global.proxy.envoyStatsd.host=${STATSD_POD_IP} --set global.remoteZipkinAddress=${ZIPKIN_POD_IP}

Note: Currently, only one instance of Istio or Istio-Remote can be installed on a cluster at a time.

Configuration

The istio-remote helm chart requires the four specific variables to be configured as defined in the following table:

ParameterDescriptionValuesDefault
global.proxy.repositorySpecifies the proxy image locationvalid image repositoryibmcom/istio-proxyv2
global.proxy.tagSpecifies the proxy image versionvalid image tag1.0.2
global.proxy.resourcesCPU/Memory for resource requests & limitsvalid CPU&memory settings{requests.cpu: 100m, requests.memory: 128Mi}
global.proxy.concurrencyControls number of proxy worker threads. If set to 0 (default), then start worker thread for each CPU thread/corevalid number(>=0)0
global.proxy.accessLogFileSpecifies the access log for each sidecar, an empty string will disable access log for sidecarvalid file path or empty string/dev/stdout
global.proxy.privilegedConfigure privileged securityContext for proxy. If set to true, istio-proxy container will have privileged securityContexttrue/falsefalse
global.proxy.enableCoreDumpSpecifies whether to enable debug information for envoy sidecartrue/falsefalse
global.proxy.includeIPRangesSpecifies istio egress capture whitelistexample: includeIPRanges: "172.30.0.0/16,172.20.0.0/16"*
global.proxy.excludeIPRangesSpecifies istio egress capture blacklistexample: excludeIPRanges: "172.40.0.0/16,172.50.0.0/16"""
global.proxy.excludeInboundPortsSpecifies istio egress capture port blacklistexample: excludeInboundPorts: "81:8081"""
global.proxy.autoInjectSpecifies whether to enable ingress and egress policy for envoy sidecarenabled/disabledenabled
global.proxy.envoyStatsd.enabledSpecifies whether to enable the destination statsd in envoytrue/falsetrue
global.proxy.envoyStatsd.hostSpecifies host for the destination statsd in envoydestination statsd hostistio-statsd-prom-bridge
global.proxy.envoyStatsd.portSpecifies host port for the destination statsd in envoydestination statsd port9125
global.proxy_init.repositorySpecifies the proxy init image locationvalid image repositoryibmcom/istio-proxy_init
global.proxy_init.tagSpecifies the proxy init image versionvalid image tag1.0.2
global.imagePullPolicySpecifies the image pull policyvalid image pull policyIfNotPresent
global.kubectl.repositorySpecifies the kubectl image locationvalid image repositoryibmcom/kubectl
global.kubectl.tagSpecifies the kubectl image versionvalid image tagv1.11.3
global.controlPlaneSecurityEnabledSpecifies whether control plane mTLS is enabledtrue/falsefalse
global.disablePolicyChecksSpecifies whether to disables mixer policy checkstrue/falsefalse
global.enableTracingSpecifies whether to enables the Tracingtrue/falsetrue
global.mtls.enabledSpecifies whether mTLS is enabled by default between servicestrue/falsefalse
global.imagePullSecretsSpecifies image pull secrets for private docker registryarray consists of imagePullSecret[]
global.remotePilotCreateSvcEndpointSpecifies whether to create a headless service and endpoint for istio-pilot with the remotePilotAddresstrue/falsefalse
global.remotePilotAddressSpecifies the pilot Pod IP address for the Istio control planevalid pod IP address""
global.remotePolicyAddressSpecifies the mixer policy Pod IP address for the Istio control planevalid pod IP address""
global.remoteTelemetryAddressSpecifies the mixer telemetry Pod IP address for the Istio control planevalid pod IP address""
global.remoteZipkinAddressSpecifies the tracing Pod IP address for the Istio control planevalid pod IP address""
gobal.defaultResourcesSpecifies resources(CPU/Memory) requests & limits applied to all deploymentsvalid CPU&memory settings{requests.cpu: 10m}
global.omitSidecarInjectorConfigMapSpecifies whether to omit the istio-sidecar-injector configmap when generate a standalone gatewaytrue/falsefalse
global.priorityClassNameSpecifies priority class to make sure Istio pods will not be evicted because of low prioroty classvalid priority class name""
global.arch.amd64Architecture preference for amd64 node0 - Do not use/1 - Least preferred/2 - No preference/3 - Most preferred2 - No preference
global.arch.ppc64leArchitecture preference for ppc64le node0 - Do not use/1 - Least preferred/2 - No preference/3 - Most preferred2 - No preference
global.arch.s390xArchitecture preference for s390x node0 - Do not use/1 - Least preferred/2 - No preference/3 - Most preferred2 - No preference
sidecarInjectorWebhook.enabledSpecifies whether the Automatic Sidecar Injector should be installedtrue/falsetrue
sidecarInjectorWebhook.replicaCountSpecifies number of desired pods for Automatic Sidecar Injector Webhooknumber1
sidecarInjectorWebhook.enableNamespacesByDefaultSpecifies use the default namespaces for Automatic Sidecar Injector Webhooktrue/falsefalse
sidecarInjectorWebhook.image.repositorySpecifies the Automatic Sidecar Injector image locationvalid image repositoryibmcom/istio-sidecar_injector
sidecarInjectorWebhook.image.tagSpecifies the Automatic Sidecar Injector image versionvalid image tag1.0.2
sidecarInjectorWebhook.resourcesCPU/Memory for resource requests & limitsvalid CPU&memory settings{}
sidecarInjectorWebhook.nodeRoleSpecify which node current component will be scheduled to(effective only on IBM Cloud Private)proxy/managementmanagement
sidecarInjectorWebhook.nodeSelectorSpecifies customized node selector for deploymentvalid node selector{}
security.replicaCountSpecifies number of desired pods for Citadel deploymentnumber1
security.selfSignedSpecifies whether self-signed CA is enabledtrue/falsetrue
security.image.repositorySpecifies the Citadel image locationvalid image repositoryibmcom/istio-citadel
security.image.tagSpecifies the Citadel image versionvalid image tag1.0.2
security.resourcesCPU/Memory for resource requests & limitsvalid CPU&memory settings{}
security.nodeRoleSpecify which node current component will be scheduled to(effective only on IBM Cloud Private)proxy/managementmanagement
security.nodeSelectorSpecifies customized node selector for deploymentvalid node selector{}

Uninstalling the Chart

To uninstall/delete the istio-remote release:

$ helm delete istio-remote

The command removes all the Kubernetes components associated with the chart and deletes the release.

To uninstall/delete the istio-remote release completely and make its name free for later use:

$ helm delete istio-remote --purge

Limitations

  • In a multicluster deployment the mixer-telemetry and mixer-policy components do not connect to the Kubernetes API endpoints of any of the remote clusters. This results in a loss of telemetry fidelity as some of the metadata associated with workloads on remote clusters is incomplete.

  • The pilotEndpoint, policyEndpoint, statsdEndpoint, zipkinEndpoint endpoints need to be resolvable via Kubernetes. The simplest approach to enabling resolution for these variables is to specify the Pod IP of the various services. One problem with this is Pod IPs change during the lifetime of the service.

  • Currently ICP Catalog UI doesn't support input type of array and object, customization for these fields should be done via helm command-line instead of ICP Catalog UI.

Deploy ibm-istio-remote with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-istio-remote on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-istio-remote is pinned at v1.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply