Home > OS >  Can I deploy pods in public and private subnets?
Can I deploy pods in public and private subnets?

Time:02-11

I am currently trying to identify the required AWS VPC and Subnet structure for EKS.

However, would like to check whether I can deploy the UI containers (pods) and the Spring Boot based API Gateway pods in public subnet and deploy all other back-end service pods in private subnet.

Is it possible to create such Kubernetes YAML deployment configuration?

CodePudding user response:

You deploy the UI containers (pods) and the Spring Boot based API Gateway pods in nodes that run in public subnet, all other back-end service pods in nodes that run in private subnet. Where nodes are really just EC2 instance that runs kubelet that have joined your EKS cluster. Typically, you use nodeSelector or affinity to direct which node for your pod to run.

  • Related