We are trying to deploy a dot net core API service to amazon EKS using ECR. The deployment was successful, but the pods are in pending status. Below are the detailed steps we followed.
Steps followed. 1. Created a docker image 2. Pushed the image to ECR. The image is now visible in aws console also. // The image looks good, I was able to run it using my docker locally.
Created a t2-micro cluster as below eksctl create cluster --name net-core-prod --version 1.14 --region us-west-2 --nodegroup-name standard-workers --node-type t2.micro --nodes 1 --nodes-min 1 --nodes-max 1 –managed // Cluster and Node groups were created successfully. // IAM roles also got created
Deployed a replication controller using the attached json/yaml//net-app.json
- Deployed the service using the attached json/yaml //net-app-scv.json
The get all command returned this. //get_all.png POD always remains in PENDING status.
Pod describe gave the below result //describe_pod.png
- We have also tried adding policy to the cluster IAM role to include ECR permissions attached. //ECR_policy.json
Key points:
1. We are using a t2-micro instance cluster since it’s a AWS free account.
2. We created a linux cluster and tried to push the dotnet core app. //this worked fine in our local machine
3. The cluster had only 1 node //-nodes 1 --nodes-min 1 --nodes-max 1
Can somebody please guide us on how to set up this correctly.
所有评论(0)