Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 3.45 KB

Configmap_Properties.md

File metadata and controls

55 lines (42 loc) · 3.45 KB

This document explains configmap variables.

Property Definition Default Required/Optional
iam.policy.action.prefix.whitelist Allowed IAM policy actions Optional
iam.policy.resource.blacklist Restricted IAM policy resource Optional
iam.policy.s3.restricted.resource Restricted S3 resource Optional
aws.accountId AWS account ID where IAM roles are created Optional
iam.managed.policies User managed IAM policies Optional
iam.managed.permission.boundary.policy User managed permission boundary policy k8s-iam-manager-cluster-permission-boundary Required
webhook.enabled Enable webhook? `false Required
iam.role.max.limit.per.namespace Maximum number of roles per namespace 1 Required
aws.region AWS Region us-west-2 Required
iam.default.trust.policy Default trust policy role. This must follow v1alpha1.AssumeRolePolicyDocument syntax Optional
iam.role.pattern See docs below... k8s-{{ .ObjectMeta.Name }} Optional
controller.desired.frequency Controller frequency to check the state of the world (in seconds) 300 Optional
k8s.cluster.name Name of the cluster Optional
k8s.cluster.oidc.issuer.url OIDC issuer of the cluster Optional
iam.irsa.enabled Enable IRSA option? false Optional

iam.role.pattern

Default: k8s-{{ .ObjectMeta.Name }}

All IAM roles created by the controller will use this GoLang template to generate the final IAM Role Name. The default setting works fine if you have a single cluster - but if you want to operate multiple clusters in the same AWS account you will need to make sure the controllers do not conflict.

The Iamrole object is passed into the Go templating engine, enabling you to use any object field found in that role. For example mycluster-{{ .ObjectMeta.Namespace }}-{{ .ObjectMeta.Name }}.

All IAM roles created and managed by the controller will use this prefix. This helps organize IAM roles within your AWS Account, and can be used to ensure uniqueness between different EKS Clusters within the same AWS account.

Critical Note: Read this before changing this setting

Note: Changes to your IAM Policy may be required if you customize this

Note about changing iam.role.pattern

If you have existing IAMRole resources in your cluster, and you make a change to the iam.role.pattern setting - the controller will reconcile the situation by creating NEW IAM roles. It will not however clean up the old roles - thus you will have left over unused IAM roles in your account.

Get these settings right from the beginning, or be prepared to clean up the left over roles.