Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS Logo
Menu
Creating Deployment Configurations for EKS with Amazon Q

Creating Deployment Configurations for EKS with Amazon Q

Amazon Q Developer assists by generating sample deployments, explaining rolling update strategies, and troubleshooting common deployment issues, showcasing its deep knowledge of Kubernetes concepts.

Ricardo Tasso
Amazon Employee
Published Feb 19, 2025
Welcome to another installment of Q-Bits, our regular series showcasing cool ways Amazon employees are leveraging Amazon Q Developer. Today, we're exploring how Q Developer can assist with creating and optimizing EKS deployment configurations.
Amazon Q Developer streamlines EKS deployment workflows by providing intelligent assistance for Kubernetes configurations and best practices.

A Production Deployment Challenge

During my first project migrations to EKS, I needed to create deployment configurations for multiple microservices. With numerous configuration options and best practices to consider, so I had to read a huge number of wikis and api documents to understand and follow the best practices. I need to confess that it took a precious time to understand and write the files. Since 2024, Amazon Q Developer became my assistant for generating and validating deployment manifests, and I would like to share with you what I've learned and how to use Q Developer to create your Kubernetes deployment manifests.

Crafting Deployments with Q Developer

I will start by creating a basic deployment template. Instead of searching through documentation, I simply opened a new YAML file and asked Q Developer to help generate a sample deployment configuration.
Here is my prompt:
Amazon Q Developer promptly suggested a production-ready template:
Amazon Q Developer also explained me the key components making sure I have understanding about what I'm creating in my cluster.
key_components
Key Components Explanation

Optimizing for Production

To ensure our deployment was production-ready, I highlighted the entire file and used "Amazon Q > Fix". Q Developer suggested several improvements:
1. Added comments to the main changes containing explanation about how to use the manifest
2. Added full ECR repository URL pattern
3. Implemented the imagePullPolicy
4. Improved probe configurations
As an improvement I can also request for Amazon Q Developer to implement a pod anti-affinity rule.
anti-affinity
Anti-Affinity Rule

Troubleshooting Common Issues

Q Developer also helped identify potential issues before they occurred in production, such as:
  • Resource quota configurations
  • Network policy requirements
  • Service account permissions
  • Image pull policies

Improving an existing deployment

Q Developer will help to fix, improve, and adapt existing manifests. You can request Q Developer to:
  • Change the image to a new version
  • Add storage for stateful applications
  • Improve replicas distribution around the EKS cluster
  • Understand the current configuration

Conclusion

Amazon Q Developer has transformed the way I create and manage EKS deployments. It provides intelligent suggestions, validates configurations, and helps maintain best practices across our Kubernetes infrastructure. Whether you're new to EKS or an experienced DevOps engineer, Q Developer serves as an invaluable assistant in your deployment workflow.
Stay tuned for more Q-Bits, where we'll continue to explore how Amazon Q Developer is revolutionizing our development processes.
 

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments