istio-gateway

by Startechnica

Helm chartv1.0.7App 1.28.0Verified publisher

Istio Gateway provides more extensive customization and flexibility than Kubernetes Ingress, and allows Istio features such as monitoring and route rules to be applied to traffic entering the cluster.

About this chart

Helm chart for Istio Gateway (Multi Gateway)

Gateway used to manage inbound and outbound traffic for your mesh, letting you specify which traffic you want to enter or leave the mesh. Gateway configurations are applied to standalone Envoy proxies that are running at the edge of the mesh, rather than sidecar Envoy proxies running alongside your service workloads.

Along with support for Kubernetes Ingress resources, Istio also allows you to configure ingress traffic using either an Istio Gateway or Kubernetes Gateway resource. A Gateway provides more extensive customization and flexibility than Ingress, and allows Istio features such as monitoring and route rules to be applied to traffic entering the cluster.

This Helm chart configure Istio to expose a service outside of the service mesh using a Gateway.

Overview of Istio Gateway

This chart is not maintained by the upstream project and any issues with the chart should be raised here

TL;DR

helm repo add startechnica https://startechnica.github.io/apps
helm install istio-ingressgateway startechnica/istio-gateway

Prerequisites

  • Kubernetes 1.24+
  • Helm 3.10.0+

Installing the Chart

To install the chart with the release name istio-ingressgateway on istio-ingressgateway namespace:

helm repo add startechnica https://startechnica.github.io/apps
helm install istio-ingressgateway startechnica/istio-gateway --namespace istio-ingressgateway --create-namespace

These commands deploy Istio Gateway on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list -A

Uninstalling the Chart

To uninstall/delete the istio-ingressgateway deployment:

helm delete istio-ingressgateway --namespace istio-ingressgateway

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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.namespaceOverrideOverride the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override st-common.names.fullname template with a string (will prepend the release name)""
namespaceOverrideString to fully override st-common.names.namespace""
fullnameOverrideString to fully override st-common.names.fullname template with a string""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
schedulerNameName of the Kubernetes scheduler (other than default)""
clusterDomainKubernetes DNS Domain name to usecluster.local
extraDeployArray of extra objects to deploy with the release (evaluated as a template)[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment[]
diagnosticMode.argsArgs to override all containers in the deployment[]

Istio common parameters

NameDescriptionValue
istioNamespaceIstiod namespaceistio-system

Istio Gateway parameters

NameDescriptionValue
gateways.enabledEnable Istio Gatewaytrue
gateways.nameIstio Gateway identifieringressgateway
gateways.revisionRevision is set as 'version' label and part of the resource names when installing multiple control planes.""
gateways.replicaCountDesired number of pods1
gateways.image.registryIstio Gateway image registry""
gateways.image.repositoryIstio Gateway image repository""
gateways.image.tagIstio Gateway image tag (immutable tags are recommended)""
gateways.image.digestIstio Gateway image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag.""
gateways.image.pullPolicyIstio Gateway image pull policyIfNotPresent
gateways.image.pullSecretsSpecify docker-registry secret names as an array[]
gateways.image.debugSet to true if you would like to see extra information on logsfalse
gateways.hostAliasesDeployment pod host aliases[]
gateways.commandOverride default container command (useful when using custom images)[]
gateways.argsOverride default container args (useful when using custom images)[]
gateways.extraEnvVarsExtra environment variables to be set on Istio Gateway containers[]
gateways.extraEnvVarsCMConfigMap with extra environment variables""
gateways.extraEnvVarsSecretSecret with extra environment variables""
gateways.service.typeKubernetes service typeLoadBalancer
gateways.service.ports.http2Istio Gateway HTTP/2 service port80
gateways.service.ports.httpsIstio Gateway HTTPS/TLS service port443
gateways.service.ports.statusIstio Gateway Status service port15021
gateways.service.nodePorts.http2Specify the nodePort value for the LoadBalancer and NodePort service types.""
gateways.service.nodePorts.httpsSpecify the nodePort value for the LoadBalancer and NodePort service types.""
gateways.service.nodePorts.statusSpecify the nodePort value for the LoadBalancer and NodePort service types.""
gateways.service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
gateways.service.externalIPsExternal IP list to use with ClusterIP service type[]
gateways.service.clusterIPSpecific cluster IP when service type is ClusterIP. Use None for headless service""
gateways.service.loadBalancerIPloadBalancerIP if service type is LoadBalancer""
gateways.service.ipFamilyPolicyIstio Gateway Kubernetes service ipFamilyPolicy policySingleStack
gateways.service.loadBalancerSourceRangesAddresses that are allowed when svc is LoadBalancer[]
gateways.service.externalTrafficPolicyIstio Gateway service external traffic policyCluster
gateways.service.annotationsAdditional annotations for Istio Gateway service{}
gateways.service.sessionAffinitySession Affinity for Kubernetes service, can be None or ClientIPNone
gateways.service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
gateways.networkGatewayIf specified, the gateway will act as a network gateway for the given network.

Deploy istio-gateway with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has istio-gateway 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 chartistio-gateway is pinned at v1.0.7 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