Unable to increase the number of pods on eks fargate.

0

I am not able increase the number of pods from 5 to 10 on AWS fargate.

AB
asked 2 months ago169 views
1 Answer
1

My first question is that did you get any error when you tried to increase the pods and could you paste the error if not you can follow the below steps to do it. To increase the number of pods running on AWS Fargate in an Amazon EKS cluster, you need to adjust the configurations of your Kubernetes Deployment or ReplicaSet. Here's a general guide on how to do it:

Update ReplicaSet or Deployment: Identify the ReplicaSet or Deployment that manages the pods you want to scale.
Edit Configuration: Use kubectl edit command to edit the configuration of the ReplicaSet or Deployment. For example:
bash
kubectl edit deployment <deployment-name>

Adjust Replica Count: In the configuration file, find the replicas field and update it to the desired number of pods. For example:

yaml
replicas: 10
Save Changes: Save the changes to the configuration file and exit the editor. 

Kubernetes will automatically apply the changes, and the scheduler will start creating additional pods.

Verify: Use kubectl get pods command to verify that new pods are being created and are in the desired state:
bash
kubectl get pods

Monitor: Monitor the status of the new pods and ensure that they are running as expected. You can use kubectl describe pod <pod-name> to get more detailed information about individual pods if needed.

By following these steps, you should be able to increase the number of pods running on AWS Fargate in your Amazon EKS cluster. If you encounter any errors or issues, check the Kubernetes events and logs for troubleshooting.

Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)

profile picture
EXPERT
answered 2 months ago
  • I edited the configuration file and made the same changes and executed the command but still 5 pods are running.

  • This entails to do some other checks that is preventing increase in pods

    Event Logs: Check the events and logs for any error messages or warnings that might provide clues as to why the pods are not being scheduled.

    Resource Constraints: Ensure that your cluster has enough resources (CPU, memory, etc.) available to accommodate the additional pods. If your cluster is running at capacity, Kubernetes may not be able to schedule new pods.

    Pod Scheduling: Check if there are any node selectors or affinity/anti-affinity rules specified in your pod configuration that could be preventing the new pods from being scheduled on available nodes.

    Taints and Tolerations: If your nodes have taints applied, ensure that your pods have the appropriate tolerations to allow them to be scheduled on those nodes.

    Node Readiness: If your cluster is managed by AWS Fargate, verify that the Fargate profiles associated with your namespace have the correct settings to allow for the desired number of pods.

    Pod Disruption Budgets: If you have PodDisruptionBudgets (PDBs) defined, ensure that they are not preventing the new pods from being created. PDBs can restrict the number of pods that can be simultaneously evicted from a deployment.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions