Templates
Amazon EKS

EKS Administration

9min

View EKS Resources from AWS Console

To view EKS resources directly from the AWS Console you have to perform the following steps:

  • From the Microtica Console, choose the Kubernetes resource and copy the EKSConsoleRoleName output parameter value
  • Go to AWS Console header menu, choose Switch role
Document image

  • Enter your Account ID, Role name that you copied from Microtica Console and choose a Display Name for the role.
Document image

  • You will be redirect to the AWS console, navigate to EKS, choose a cluster and you will be able to view all resources for the cluster directly in the AWS Console.

Setup local access to your Kubernetes Cluster

To access the Kubernetes cluster, you must first obtain the credentials from the AWS Console.

  1. Go to the AWS Console and navigate to the AWS Secret Manager.
  2. Under "Secret Value," click on "Retrieve Secret Value" to securely access the Kubernetes credentials.

Next, create a new cluster using the kubectl utility:

  1. Open your terminal or command prompt.
  2. Ensure that you have the kubectl utility installed and properly configured to access your cluster.
  3. Use the following command as a template, replacing the placeholder values with your actual secret information:
Shell

Configure New Cluster


Shell to a Running Container

To log in to a specific pod deployed in the Kubernetes cluster, follow these steps in your terminal:

Shell


Access Applications in a Cluster

To interact with an application that is running within a Kubernetes cluster from your local environment, follow these steps in your terminal:

Shell


Grant applications access to AWS resources

By default, the EKS cluster is set up with minimal permissions to AWS resources, prioritizing security.

However, many times the applications running within the cluster require access to specific AWS resources such as SES, SQS, SNS, and Cognito to ensure smooth operation.

To accomplish this, follow these steps to extend the default permissions:

  1. Access the AWS Console
  2. Navigate to the IAM Service
  3. In the IAM dashboard, search for the "NodeInstanceRole" role linked to your EKS cluster
  4. Within the role details, locate the "Add Permissions" dropdown menu
  5. From the dropdown, choose "Attach Policies"
  6. Browse and choose the policy that provides the required permissions for the AWS resources your apps need to access
  7. After selecting the desired policy, click the "Add permissions" button to apply the changes.

By following these steps, you can seamlessly grant your applications the necessary access to AWS resources while maintaining the overall security of your EKS cluster.



Attach custom policy
Attach custom policy

Select specific policy
Select specific policy




Updated 18 Aug 2024
Doc contributor
Did this page help you?