Skip to content
v2.275.0

AlbControllerVersion Class ​

Controller version.

Corresponds to the image tag of 'amazon/aws-load-balancer-controller' image.

Example ​

ts
import { KubectlV36Layer } from '@aws-cdk/lambda-layer-kubectl-v36';

new eks.Cluster(this, 'HelloEKS', {
  version: eks.KubernetesVersion.V1_36,
  albController: {
    version: eks.AlbControllerVersion.V3_2_2,
    overwriteServiceAccount: true
  },
  kubectlLayer: new KubectlV36Layer(this, 'kubectl'),
});

Properties ​

custombooleancustomboolcustomBooleanCustomboolCustom*bool#
Whether or not its a custom version.
helmChartVersionstringhelm_chart_versionstrhelmChartVersionStringHelmChartVersionstringHelmChartVersion*string#
The version of the helm chart to use.
versionstringversionstrversionStringVersionstringVersion*string#
The version string.

Methods ​

of(version: string, helmChartVersion?: string): AlbControllerVersion // chainable@staticmethod def of(version: str, helm_chart_version: typing.Optional[str] = None) -> AlbControllerVersionpublic static AlbControllerVersion of(String version, String helmChartVersion)public static AlbControllerVersion Of(string version, string? helmChartVersion = null)func Of(Version *string, HelmChartVersion *string) AlbControllerVersionstatic#
Specify a custom version and an associated helm chart version.
notes · 2 parameters

Use this if the version you need is not available in one of the predefined versions. Note that in this case, you will also need to provide an IAM policy in the controller options.

ALB controller version and helm chart version compatibility information can be found here: https://github.com/aws/eks-charts/blob/v0.0.133/stable/aws-load-balancer-controller/Chart.yaml

Parameters

  • versionversionversionversionVersion — The version number.
  • helmChartVersionhelm_chart_versionhelmChartVersionhelmChartVersionHelmChartVersion — The version of the helm chart.