Describe the bug
Hello CDK team! 👋
Until now managed the ALB Controller by ourselves, but now started experimented using the albController with the following:
- AlbControllerVersion.V2_4_1
Everything works fine for k8s version 1.22, but all our EKS Clusters with lower version are failing with
Failed to create Ingress 'prod/htd-ingress' because: Internal error occurred: failed calling webhook "vingress.elbv2.k8s.aws": the server could not find the requested resource
After some diggings it proved to be because of the 1.2.7 Helm Chart version pinned in the alb-controller. As the comment says, although the Helm Chart is an implementation detail, it proves not to be the case.
I've changed the compiled JS code to version 1.4.1 (which was released together with the AlbControllerVersion.V2_4_1 docker image) and everything works as expected again. Did not dig into all the Helm Chart details, but there are definitely some resources missing in the 1.2.7 version that make the ALBC incompatible with the k8s versions lower than 1.22.
Expected Behavior
ALBC allowing the ingress deployments.
Current Behavior
Failing with the above error.
Reproduction Steps
const cluster = new Cluster(this, 'Cluster', {
clusterName: this.clusterName,
version: KubernetesVersion.of(props.version ?? '1.19'),
defaultCapacity: AVOID_INITIAL_CAPACITY_ALLOCATION,
vpcSubnets: [{ subnetType: SubnetType.PRIVATE_WITH_NAT }], // this will look for subnets with tag `aws-cdk:subnet-type=Private`
endpointAccess: EndpointAccess.PRIVATE, // no access outside of your VPC,
vpc,
mastersRole,
securityGroup: controlPlaneSG,
albController: props.albController ?? DEFAULT_ALB_CONTROLLER,
});
Possible Solution
Possible solutions:
- Update the version to latest available
- Expose the ALBC Chart version in the AlbControllerOptions interface.
FYI: I can raise a PR once we agree on the solution.
Additional Information/Context
No response
CDK CLI Version
2.27.0
Framework Version
No response
Node.js Version
v17.6.0
OS
MacOS
Language
Typescript
Language Version
4.5.5
Other information
No response
Describe the bug
Hello CDK team! 👋
Until now managed the ALB Controller by ourselves, but now started experimented using the albController with the following:
Everything works fine for k8s version
1.22, but all our EKS Clusters with lower version are failing withAfter some diggings it proved to be because of the
1.2.7Helm Chart version pinned in the alb-controller. As the comment says, although the Helm Chart is an implementation detail, it proves not to be the case.I've changed the compiled JS code to version
1.4.1(which was released together with theAlbControllerVersion.V2_4_1docker image) and everything works as expected again. Did not dig into all the Helm Chart details, but there are definitely some resources missing in the1.2.7version that make the ALBC incompatible with the k8s versions lower than 1.22.Expected Behavior
ALBC allowing the
ingressdeployments.Current Behavior
Failing with the above error.
Reproduction Steps
Possible Solution
Possible solutions:
FYI: I can raise a PR once we agree on the solution.
Additional Information/Context
No response
CDK CLI Version
2.27.0
Framework Version
No response
Node.js Version
v17.6.0
OS
MacOS
Language
Typescript
Language Version
4.5.5
Other information
No response