- Resize the EBS volume such that
lsblk
shows the extra space. - Run
sudo growpart /dev/nvme0n1 1
to grow the LVM partition. - Run
sudo xfs_growfs /
to expand the filesystem into the LVM partition.
- See also:
- Troubleshooting
- EKS unauthorized error
- Ensure cluster endpoint has public access enabled.
- Ensure
aws-iam-authenticator
is installed and at$PATH
. - Ensure the output of
aws sts get-caller-identity
prints the desired IAM profile. If AWS keys have been sourced for Terraform, this may print the Terraform IAM user. To change this to the[default]
profile in your~/.aws/credentials
file, launch a new shell. aws eks update-kubeconfig --region us-gov-west-1 --name my-cluster --profile terraform
= Create a kubeconfig file for the EKS cluster called my-cluster using the the terraform profile in the~/.aws/credentials
file.- Updating EKS configmap for IAM user access:
kubectl edit configmap aws-auth -n kube-system
apiVersion: v1 data: mapRoles: | - groups: - system:bootstrappers - system:nodes rolearn: arn:aws-us-gov:iam::123456789012:role/eks_gitlab_runner-eks-node-group-20220210182019868800000002 username: system:node:{{EC2PrivateDNSName}} # Add mapUsers like so: mapUsers: | - userarn: arn:aws-us-gov:iam::123456789123:user/john.doe username: john.doe groups: - system:masters - userarn: arn:aws-us-gov:iam::098765432109:user/jane.doe username: jane.doe groups: - system:masters kind: ConfigMap metadata: creationTimestamp: "2022-02-10T17:14:57Z" name: aws-auth namespace: kube-system resourceVersion: "10432" uid: 19dc865b-2799-22b2-810a-6f10b19ea032
- EKS unauthorized error