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
71
votes
23 answers

CircleCI message "error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

I am facing an error while deploying deployment in CircleCI. Please find the configuration file below. When running the kubectl CLI, we got an error between kubectl and the EKS tool of the aws-cli. version: 2.1 orbs: aws-ecr:…
yass
  • 829
  • 1
  • 3
  • 6
37
votes
11 answers

kubectl versions Error: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1

I was setting up my new Mac for my eks environment. After the installation of kubectl, aws-iam-authenticator and the kubeconfig file placement in default location. I ran the command kubectl command and got this error mentioned below in command…
Saravana
  • 595
  • 1
  • 6
  • 15
36
votes
4 answers

kubectl context vs cluster

In the world of kubectl and kubernetes config, what's the difference between context and a cluster? For example I see these commands: Available Commands: current-context Displays the current-context delete-cluster Delete the specified cluster…
user7898461
35
votes
5 answers

Pod limit on Node - AWS EKS

On AWS EKS I'm adding deployment with 17 replicas (requesting and limiting 64Mi memory) to a small cluster with 2 nodes type t3.small. Counting with kube-system pods, total running pods per node is 11 and 1 is left pending, i.e.: Node #1:…
Andrija
  • 14,037
  • 18
  • 60
  • 87
34
votes
2 answers

How to list all namespaces in a cluster?

I am trying to figure out how to list all namespaces in a cluster: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ something like: kubectl describe cluster --namepaces -o json anyone know how to list all the namespaces…
user11810894
32
votes
1 answer

How to use Docker Image in ECR with AWS EKS

I have created EKS Cluster. I also have docker image in ECR. I am not sure how to use the docker image in pod definition in YAML. Is it required to give credentials in secret? or EKS IAM role should have permission for ECR? Any changes in…
Karthik
  • 744
  • 2
  • 7
  • 23
29
votes
6 answers

EKS ALB is not to able to auto-discover subnets

Background: I have a VPC with 3 public subnets(the subnets have access to an internet gateway) I have an EKS Cluster in this VPC, the EKS cluster is created from the console and not using eksctl I used this tutorial from the official aws…
29
votes
12 answers

AWS EKS NodeGroup "Create failed": Instances failed to join the kubernetes cluster

I am able to create an EKS cluster but when I try to add nodegroups, I receive a "Create failed" error with details: "NodeCreationFailure": Instances failed to join the kubernetes cluster I tried a variety of instance types and increasing larger…
29
votes
8 answers

The connection to the server localhost:8080 was refused - did you specify the right host or port?

when i am trying to test the configuration of kubectl kubectl get svc i am getting this error: the server doesn't have a resource type "svc" when I try this command kubectl get services i am getting error: The connection to the server…
Harshin_
  • 431
  • 2
  • 5
  • 6
28
votes
6 answers

Kubernetes Pods Terminated - Exit Code 137

I need some advise on an issue I am facing with k8s 1.14 and running gitlab pipelines on it. Many jobs are throwing up exit code 137 errors and I found that it means that the container is being terminated abruptly. Cluster information: Kubernetes…
YYashwanth
  • 670
  • 1
  • 6
  • 14
26
votes
8 answers

DNS problem on AWS EKS when running in private subnets

I have an EKS cluster setup in a VPC. The worker nodes are launched in private subnets. I can successfully deploy pods and services. However, I'm not able to perform DNS resolution from within the pods. (It works fine on the worker nodes, outside…
Daniel
  • 985
  • 2
  • 14
  • 18
22
votes
4 answers

What does "eksctl create iamserviceaccount" do under the hood on an EKS cluster?

AWS supports IAM Roles for Service Accounts (IRSA) that allows cluster operators to map AWS IAM Roles to Kubernetes Service Accounts. To do so, one has to create an iamserviceaccount in an EKS cluster: eksctl create iamserviceaccount \ --name…
HsnVahedi
  • 1,271
  • 3
  • 13
  • 34
22
votes
6 answers

How do you get kubectl to log in to an AWS EKS cluster?

Starting from a ~empty AWS account, I am trying to follow https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html So that meant I created a VPS stack, then installed aws-iam-authenticator, awscli and kubectl, then created an IAM user…
sbs
  • 1,139
  • 3
  • 13
  • 19
20
votes
7 answers

Your current user or role does not have access to Kubernetes objects on this EKS cluster

Don't know if this is an error from AWS or something. I created an IAM user and gave it full admin policies. I then used this user to create an EKS cluster using the eksctl CLI but when I logging to AWS console with the root user I got the below…
20
votes
8 answers

Terraform: Error: Kubernetes cluster unreachable: invalid configuration

After deleting kubernetes cluster with "terraform destroy" I can't create it again anymore. "terraform apply" returns the following error message: Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try…
1
2 3
99 100