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
20
votes
3 answers

How to rewrite target url within an AWS ALB Ingress Controller?

In a classic Kubernetes Nginx ingress I know that it is possible to rewrite target url based on a specific regex by appling this annotation nginx.ingress.kubernetes.io/rewrite-target: /$1 But this annotation does not work in AWS ALB ingress. Does…
20
votes
2 answers

KOPS over AWS EKS or vice versa

I came across an open source Kubernetes project KOPS and AWS Kubernetes service EKS. Both these products allow installation of a Kubernetes cluster. However, I wonder why one would pick EKS over KOPS or vice versa if one has not run any of them…
Débora
  • 5,816
  • 28
  • 99
  • 171
19
votes
4 answers

How to stop AWS EKS Worker Instances

I wonder if that would be possible to temporary stop the worker VM instances so they are not running at night time when I am not working on a cluster development. So far the only way I am aware of to "stop" the instances from running is to delete…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
19
votes
4 answers

AccessDeniedException - creating eks cluster - User is not authorized to perform: eks:CreateCluster

I am trying to run this command at the command line: aws eks create-cluster \ --name ignitecluster \ --role-arn "$role_arn" \ --resources-vpc-config \ subnetIds="$subnet_id",securityGroupIds="$security_group" I get: An error…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
19
votes
1 answer

Pods stuck in ContainerCreating with "failed to assign an IP address to container"

Multiple pods of a 600 pod deployment stuck in ContainerCreating after a rolling update with the message: Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod network: add cmd: failed to assign an…
ProGirlXOXO
  • 2,170
  • 6
  • 25
  • 47
19
votes
1 answer

EKS in private Subnet , Load Balancer in public subnet

I am running EKS in private subnet and thus unable to create an internet facing load balancer but was able to create Internal LoadBalancer. Is there any way I can create Loadbalancer(probably Manually) in public subnet and point to the pods running…
R-JANA
  • 1,138
  • 2
  • 14
  • 30
19
votes
2 answers

custom tag on EBS volume provisioned dynamically by Kubernetes

I'm dynamically provisioning a EBS Volume (Kubernetes on AWS through EKS) through PersistentVolumeClaim with a StorageClass apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: k8sebs parameters: encrypted: "false" type: gp2 …
Greg Hill
  • 2,148
  • 2
  • 23
  • 27
18
votes
5 answers

kubectl logs -f gets "Authorization error"

I recently created a cluster on EKS with eksctl. kubectl logs -f mypod-0 bumps into Authorization error: Error from server (InternalError): Internal error occurred: Authorization error (user=kube-apiserver-kubelet-client, verb=get, resource=nodes,…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
17
votes
7 answers

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

I'm on an ec2 instance trying to get my cluster created. I have kubectl already installed and here are my services and workloads yaml files services.yaml apiVersion: v1 kind: Service metadata: name: stockapi-webapp spec: selector: app:…
MP32
  • 573
  • 1
  • 9
  • 25
17
votes
1 answer

Getting error "An error occurred (AccessDenied) when calling the AssumeRole operation: Access denied" after setting up EKS cluster

I have created the EKS cluster using AWS console, while creating a cluster I used my pre-created VPCs and subnets, I have created one role eks-role which has AmazonEKSClusterPolicy and AmazonEKSServicePolicy attached to it. I have added the…
namrata
  • 347
  • 1
  • 3
  • 11
16
votes
4 answers

failed to garbage collect required amount of images. Wanted to free 6283487641 bytes, but freed 0 bytes

I have searched many websites and articles but not found any perfect answer. I am using eks version 1.18. I can see a few of the pods are "Evicted", but when trying to check the node I can see the error "(combined from similar events): failed to…
JDGuide
  • 6,239
  • 12
  • 46
  • 64
16
votes
2 answers

Kubernetes: Have no access from EKS pod to RDS Postgres

I'm trying to setup kubernetes on AWS. For this I created an EKS cluster with 3 nodes (t2.small) according to official AWS tutorial. Then I want to run a pod with some app which communicates with Postgres (RDS in different VPC). But unfortunately…
Alex Fruzenshtein
  • 2,846
  • 6
  • 32
  • 53
16
votes
4 answers

Setting up AWS EKS - Don't know username and password for config

I'm having an extremely hard time setting up EKS on AWS. I've followed this tutorial: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-launch-workers I got up to the ~/.kube/config file and when I try to run kubectl get svc…
Alex Miles
  • 301
  • 3
  • 7
15
votes
2 answers

AWS EKS - Only 2 pod can be launched - Too many pods error

Each t2.micro node should be able to run 4 pods according to this article and the command kubectl get nodes -o yaml | grep pods output. But I have two nodes and I can launch only 2 pods. 3rd pod gets stuck with the following error message. Could it…
user630702
  • 2,529
  • 5
  • 35
  • 98
15
votes
1 answer

Rate Limiting based on URL and Path in Kubernetes

I need to implement Rate Limiting (based on URL and path) on applications deployed on Kubernetes Cluster (EKS). I'm looking for a managed way that involves least scripting and does provide an interface through which to manage rate limits for…
Talha Tariq
  • 151
  • 1
  • 1
  • 3