glamorous-australia-21342
06/21/2022, 4:16 PMroleMappings
after a cluster is created? I'm making some K8s roles with namespaces in them, and I need to update this after the namespaces are already created.
// Create an EKS cluster with the default configuration.
export const cluster = new eks.Cluster(stack,{
createOidcProvider: true,
providerCredentialOpts: {
profileName: aws.config.profile,
},
roleMappings: [
{
groups: ["system:masters"],
roleArn: clusterIamAuthRole.role.arn,
username: "admin"
},
{
groups: [k8sClusterRoleName],
roleArn: clusterNonManagedIamRole.role.arn,
username: k8sClusterRoleName
},
// {
// groups: groupsList.apply(groups => groups),
// roleArn: namespaceRestrictedIamRole.role.arn,
// username: roleName
// }
]
});
cluster.core.eksNodeAccess