![]() ![]() For more information, see update-kubeconfig. Otherwise, the IAM entity in your default AWS CLI or AWS SDK credential chain is used. Note: For authentication when running kubectl commands, you can specify an IAM role Amazon Resource Name (ARN) with the -role-arn option. You can also specify another path by setting the KUBECONFIG (from the Kubernetes website) environment variable, or with the following -kubeconfig option: $ kubectl get pods -kubeconfig. For Windows, the file is at %USERPROFILE%.kube\config. The file might also be merged with an existing kubeconfig at that location. ![]() Replace cluster_name with your EKS cluster name.īy default, the configuration file for Linux is created at the kubeconfig path ( $HOME/.kube/config) in your home directory. Note: Replace example_region with the name of your AWS Region. Create or update the kubeconfig file for your cluster: aws eks -region example_region update-kubeconfig -name cluster_name ![]() For more information, see Turning on IAM user and role access to your cluster.ģ. By default, the AWS IAM Authenticator for Kubernetes uses the configured AWS CLI or AWS SDK identity. IAM users or roles can also be granted access to an Amazon EKS cluster in aws-auth ConfigMap. These permissions are granted in the cluster's RBAC configuration in the control plane. Note: The AWS Identity and Access Management (IAM) entity user or role that creates an Amazon cluster is automatically granted permissions when the cluster is created. Check the current identity to verify that you're using the correct credentials that have permissions for the Amazon EKS cluster: aws sts get-caller-identity Tip: Use package managers such as yum, apt-get, or homebrew for macOS to install the AWS CLI.Ģ. Important: You must have Python version 2.7.9 or later installed on your system. Verify that the AWS CLI version 1.16.308 or later is installed on your system: $ aws -version Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent AWS CLI version.ġ. To manually update your kubeconfig file without using the AWS CLI, seeĬreating or updating a kubeconfig file for an Amazon EKS cluster. The following resolution shows you how to create a kubeconfig file for your cluster with the AWS CLI This configuration allows you to connect to your cluster using the Kubeconfig file using the AWS Command Line Interface (AWS CLI). Resolution You didn't create the kubeconfig fileĪfter you create your Amazon EKS cluster, you must configure your You are unable to connect to the Amazon EKS API server endpoint.You didn't create the kubeconfig file for your cluster.You might not be able to connect to your EKS cluster because of one of the following reasons: ![]()
0 Comments
Leave a Reply. |