Questions tagged [amazon-eks]

Amazon Elastic Kubernetes Service (EKS) is a part of Amazon Web Services (AWS) and provides a fully managed Kubernetes platform, with the ability to have your containers deployed across a EC2 backed solution or as a serverless solution with AWS Fargate. Use this tag for programming-related questions specific to the EKS environment.

Amazon Elastic Kubernetes Service (EKS) is a managed Kubernetes service.

In most cases EKS acts like a standard Kubernetes installation, and questions labeled with will frequently also be tagged . You do not need if you can easily reproduce your issue in a local Kubernetes environment like Docker Desktop or Minikube but in production you happen to be using EKS.

Remember that Stack Overflow questions must specifically be programming-related. Questions about setting up EKS clusters, configuring IAM roles, and other cluster-level configuration are off-topic for Stack Overflow. Depending on the specific question another Stack Exchange site like Server Fault or DevOps.SE may be a better place to ask.

A good learning resource is EKS Workshop

3675 questions
15
votes
6 answers

EKS : could not find any suitable subnets for creating the ELB

I am trying to expose a service to the outside world using the loadBalancer type service. For that, i have followed this doc https://aws.amazon.com/premiumsupport/knowledge-center/eks-kubernetes-services-cluster/ My loadbalancer.yaml looks like…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
15
votes
2 answers

Get authentication token from AWS EKS using the AWS Java SDK v2

How can I get a Kubernetes authentication token from AWS EKS using the AWS Java SDK v2? An authentication token that can then be used to authenticate with Kubernetes using a Kubernetes SDK. In other words I want to get an authentication token from…
15
votes
6 answers

how to redirect http to https using a kubernetes ingress controller on Amazon EKS

I have configured amazon certificate manager, ALB Ingress Controller and a domain names for my application. I can access my application through port 80 and port 443 (all certificates works just fine). However I would like to redirect all coming…
juanp_1982
  • 917
  • 2
  • 16
  • 37
15
votes
2 answers

Use ECR images in EKS from another account

I've two accounts: Account A and Account B. I would like to run an image from ECR at Account A on EKS on Account B. I'm a bit confused on how to give the EKS the permissions. At first I thought of creating a docker-registry in the EKS with User…
ElinN
  • 153
  • 1
  • 1
  • 5
15
votes
2 answers

Can kubectl work from an assumed role from AWS

I'm using Amazon EKS for Kubernetes deployment (initially created by an AWS admin user), and currently having difficulty to use the AWS credentials from AWS STS assume-role to execute kubectl commands to interact with the stack I have 2 EKS stacks…
Raymond Ng
  • 151
  • 1
  • 1
  • 4
14
votes
4 answers

Error loading Namespaces. Unauthorized: Verify you have access to the Kubernetes cluster

I have created a EKS cluster using the the command line eksctl and verified that the application is working fine. But noticing a strange issue, when i try yo access the nodes in the cluster in the web browser i see the following error Error loading…
opensource-developer
  • 2,826
  • 4
  • 38
  • 88
14
votes
3 answers

Switch terraform 0.12.6 to 0.13.0 gives me provider["registry.terraform.io/-/null"] is required, but it has been removed

I manage state in remote terraform-cloud I have downloaded and installed the latest terraform 0.13 CLI Then I removed the .terraform. Then I ran terraform init and got no error then I did ➜ terraform apply -var-file env.auto.tfvars Error: Provider…
DmitrySemenov
  • 9,204
  • 15
  • 76
  • 121
14
votes
2 answers

Mistakenly updated configmap aws-auth with rbac & lost access to the cluster

Was trying to restrict IAM users with the rbac of AWS EKS cluster. Mistakenly updated the configmap "aws-auth" from kube-system namespace. This removed the complete access to the EKS cluster. Missed to add the groups: in the configmap for the…
Sandy
  • 946
  • 11
  • 14
14
votes
5 answers

Kubernetes autoscaler - NotTriggerScaleUp' pod didn't trigger scale-up (it wouldn't fit if a new node is added)

I'd like to run a 'job' per node, one pod on a node at a time. I've scheduled a bunch of jobs I have a whole bunch of pending pods now I'd like these pending pods to now trigger a node scaling up event (which does NOT happen) Very much like this…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
14
votes
4 answers

Not able to SSH EKS Worker Nodes

I have create EKS cluster as specified in https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html Added worker nodes as specified in above link Step 3: Launch and Configure Amazon EKS Worker Nodes In security Group also I added rule…
Karthik
  • 744
  • 2
  • 7
  • 23
14
votes
2 answers

How to get k8s master logs on EKS?

I am looking for these logs: /var/log/kube-apiserver.log /var/log/kube-scheduler.log /var/log/kube-controller-manager.log In EKS user does not have access to the control plane and can't see these files directly. I am aware of CloudTrail integration…
lexsys
  • 537
  • 4
  • 24
13
votes
1 answer

Terraform: Deploying a Docker Compose app on EKS/ECS

TL;DR I use an open-source server application running on Docker Compose. It has a few services, including PostgreSQL DB and Redis. How can I best deploy this application to AWS in full IaC with Terraform? Solutions so far 1. AWS ecs-cli ecs-cli now…
13
votes
4 answers

How can I assign a static IP to my EKS service?

I have an EKS cluster. I created my service and exposed it using ingress-nginx. ingress-nginx external IP appears as a DNS name and not as IP. How can I connect my private domain to point to my EKS service? I know that there is an annotation for…
alexarsh
  • 5,123
  • 12
  • 42
  • 51
13
votes
12 answers

Kubectl command throwing error: Unable to connect to the server: getting credentials: exec: exit status 2

I am doing a lab setup of EKS/Kubectl and after the completion cluster build, I run the following: > kubectl get node And I get the following error: Unable to connect to the server: getting credentials: exec: exit status 2 Moreover, I am sure it…
13
votes
3 answers

What's the maximum number of Kubernetes namespaces?

Is there a maximum number of namespaces supported by a Kubernetes cluster? My team is designing a system to run user workloads via K8s and we are considering using one namespace per user to offer logical segmentation in the cluster, but we don't…
Brannon
  • 1,286
  • 2
  • 21
  • 36