6
votes
Accepted
Cannot configure node group in new EKS cluster due to no Node IAM role found
This is actually pretty well described in the docs.
Before you create worker nodes, you must create an IAM role with the
following IAM policies:
AmazonEKSWorkerNodePolicy
AmazonEKS_CNI_Policy
...
6
votes
Accepted
Is AWS Fargate suitable for web applications?
Fargate is absolutely suitable for web apps. We have many customers that use it that way (and many others that use it in a more "batchy" way). Fargate is a managed compute engine and AWS ...
5
votes
Accepted
Kubernetes serve static content with ingress
You can't configure your Ingress to serve static data (from your host files for example) alone because the Ingress resource is just a way to configure a way of understanding for Kubernetes on how to ...
4
votes
Is AWS Fargate suitable for web applications?
But from what I've understood Fargate is more suitable for container that have a limited lifetime?
That's not strictly correct, Fargate capabilities include tasks which are suitable for short-term ...
3
votes
Why use configuration management tools in the world of modern cloud?
Generally, things like Packer and Terraform handle most straight infra requirements best in the cloud. Of course, if you have kubernetes up already, it’s the same deal. A packer (or other AMI) image ...
3
votes
Accepted
Why use configuration management tools in the world of modern cloud?
What value does Ansible have in a modern cloud environment?
As the comments say, it depends on your needs. But I think there is value in considering this sort of thing, so I'm going to answer this ...
3
votes
Accepted
Is it possible to have an aws EKS infrastructure as code?
Is it possible to declare "a complete production level EKS with other aws services" using terraform?
Yes, and that is what many larger organizations do. I have implemented Kubernetes with ...
2
votes
Spread pods over cluster
You should look into affinity and anti-affinity as that allows you to control what pods go on which node. You can have it so that with anti-affinity there is only 1 pod of each deployment on a node. ...
2
votes
Where to install Prometheus for Kubernetes monitoring
This is more of an opinion based question but let me try to answer it.
installing Prometheus itself in the very same k8s cluster (as another running set of pods) is a normal thing.Am I right or just ...
2
votes
Is AWS Fargate suitable for web applications?
Nope, Fargate can be used for long running containerized workloads. Web apps, proxies, or any other containers. Maybe you are thinking of Fargate Spot? Fargate Spot is definitely not suitable for long ...
2
votes
Accepted
What does "eksctl create iamserviceaccount" do under the hood on an EKS cluster?
Yes It does more than just creating a service account. It does three things:
It Creates an IAM role.
It attaches the desired iam-policy (--attach-policy-arn
<POLICY_ARN>) to the created IAM ...
2
votes
What is the idiomatic way to reload EKS/Kube configs when a new image is pushed to ECR
The 'best approach' in a theory (coming from the perspective of k8s) would be GitOps: Cloud-native Continuous Deployment.
Your question lack some important information, how are you doing your ...
2
votes
Accepted
NodeCreationFailure: Instances failed to join the kubernetes cluster
I incurred the same problem during one of my deployments.
This happens due to the Networking issue of the EKS cluster. Assuming that you are working in AWS, follow the following steps to debug this ...
2
votes
Accepted
What happens when you are running a "too old" version of k8s in eks?
Check out the eks versions faq at the bottom of this page:
Q: What happens on the end of support date?
A: On the end of support date, [...]. Existing control planes are automatically updated by ...
1
vote
I created an Amazon EKS Kubernetes cluster using Terraform, but now I do not have access to any of the resources, and kubectl fails due to credentials
I had this issue after I launched an EKS cluster with Terraform
In order to hack your way into the cluster you will need to:
Use this command to find the user/role used to create the cluster
aws ...
1
vote
Accepted
I created an Amazon EKS Kubernetes cluster using Terraform, but now I do not have access to any of the resources, and kubectl fails due to credentials
What is the use case for creating an EKS cluster with enable_cluster_creator_admin_permissions = false?
This is the default when creating a cluster and the recommended way to create it.
If set to ...
1
vote
I created an Amazon EKS Kubernetes cluster using Terraform, but now I do not have access to any of the resources, and kubectl fails due to credentials
The Answer
Prerequisite
Ensure the cluster API endpoint is accessible.
If kubectl returns an error like this:
"https://XXXXX.gr7.us-east-1.eks.amazonaws.com/api?timeout=32s": dial tcp 10.0.2....
1
vote
Accepted
Run the latest image from ECR on EKS
ECR is just a registry - so it only stores images - it does not identify latest images, nor provides any additional information beyond tags and sha256 image digests. So it is up to you to identify the ...
1
vote
Accepted
EKS - Get availability zone of pod deployment from pod
The EC2 metadata endpoint has been updated to handle this situation but your current configuration may be preventing it. Have a read here for more: https://aws.amazon.com/about-aws/whats-new/2020/08/...
1
vote
Accepted
Does the AWS Admin user have the eks:AccessKubernetesApi permission?
There are a few ways to perform the action you're looking for. I'll demonstrate how to accomplish this task from the command line and the console. Using the SDK's (e.g. boto3) are an option too.
...
1
vote
Accepted
How to fix wrong /etc/resolv.conf in kubernetes pods after creating a cluster with EKS eksctl with vpc-cni plugin?
Related issue: https://github.com/awslabs/amazon-eks-ami/issues/636
So, not specifying --dns-cluster-ip, --b64-cluster-ca and --apiserver-endpoint fixed the DNS issue.
Final bootstrap command:
/etc/...
1
vote
Installing NVIDIA driver on EKS nodes
GPU Operator helps manage NVIDIA drivers in Kubernetes clusters, you can deploy it using Helm.
1
vote
EKS NodeAffinity for Services
i guess you mean a Deployment because service do not have any pods, and yes, you can use node affinity on a Deployment. you can find it here https://www.howtoforge.com/use-node-affinity-in-kubernetes/
1
vote
How to Integrate Amazon API Gateway with EKS using Application Load Balancer (ALB)?
From the same page:
The steps to integrate ALB and NLB with API Gateway are identical.
Which is followed by a sentence with a link to a documentation for an ALB ingress, including prerequisites for ...
1
vote
AWS ECS vs EKS for hybrid cloud strategy
In terms of general positioning this may be a good starting point.
Given in the title you mention "hybrid" deployments you may be interested in investigating and investigating ECS Anywhere ...
1
vote
Accepted
In k8s, do the controller nodes have to be in same VPC as the worker nodes for a cluster?
For Amazon EKS, the control plane is running in a separate VPC that is managed by Amazon. You only need to care about the VPC for the worker nodes.
Amazon EKS control plane – Deployed and managed by ...
1
vote
Accepted
Spread pods over cluster
Take a look at the Descheduler. This project runs as a Kubernetes Job that aims at killing pods when it thinks the cluster is unbalanced.
The LowNodeUtilization strategy seems to fit your case:
This ...
1
vote
Secure RDS (private endpoint) and allow connecting from local machine for specific predefined users
I am not sure it will be helped. I have similar design in my office.
I have some Kubernetes Cluster. all node and master running on local ip from a PVC. And my rds too, only have local ip run on same ...
1
vote
Accepted
EKS - created cluster from console with federated IAM admin - how to access
The only way to manage IAM users - using appropriate account with IAM Administrator privileges.
See AWS Identity and Access Management
If you lost your root account, you may contact an AWS support, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
eks × 51kubernetes × 40
amazon-web-services × 28
terraform × 7
helm × 6
aws-iam × 4
kubernetes-helm × 4
prometheus × 3
autoscaling × 3
networking × 2
amazon-ecs × 2
infrastructure-as-code × 2
kubectl × 2
grafana × 2
aws-ecr × 2
kubernetes-volume × 2
cert-manager × 2
argocd × 2
ansible × 1
containers × 1
amazon-ec2 × 1
continuous-deployment × 1
monitoring × 1
configuration-management × 1
nginx × 1