bitter-application-91815
11/23/2020, 6:52 PMbillowy-army-68599
11/23/2020, 7:07 PMbitter-application-91815
11/23/2020, 7:09 PMbillowy-army-68599
11/23/2020, 7:11 PMbitter-application-91815
11/23/2020, 7:16 PMCreate an IAM OIDC provider and associate it with your cluster. Replace the <example values> (including <>) with your own.
eksctl utils associate-iam-oidc-provider \
--region <region-code> \
--cluster <my-cluster> \
--approve
billowy-army-68599
11/25/2020, 6:58 PMconst cluster = new eks.Cluster(`eks-${stack}`, {
providerCredentialOpts: kubeconfigOpts,
name: `lbrlabs-eks-${stack}`,
vpcId: vpc,
privateSubnetIds: privateSubnets,
publicSubnetIds: publicSubnets,
instanceType: "t2.medium",
desiredCapacity: 2,
minSize: 1,
maxSize: 2,
createOidcProvider: true, // this is the thing you need
export const clusterName = cluster.eksCluster.name
export const kubeconfig = cluster.kubeconfig
export const clusterOidcProvider = cluster.core.oidcProvider?.url
export const clusterOidcProviderArn = cluster.core.oidcProvider?.arn
});
bitter-application-91815
11/25/2020, 6:59 PMcreateOidcProvider: true, // this is the thing you need
billowy-army-68599
11/25/2020, 7:00 PMbitter-application-91815
11/25/2020, 7:01 PMbillowy-army-68599
11/25/2020, 7:04 PMbitter-application-91815
11/25/2020, 7:06 PM