Skip to content

Instantly share code, notes, and snippets.

@vatsal2210
Created July 26, 2023 20:32
Show Gist options
  • Save vatsal2210/5e8d7a9c5680e6bd77625269721b67a8 to your computer and use it in GitHub Desktop.
Save vatsal2210/5e8d7a9c5680e6bd77625269721b67a8 to your computer and use it in GitHub Desktop.
ECR to EKS Deployment YML file
apiVersion: apps/v1
kind: Deployment
metadata:
name: YOUR_PROJECT_NAME
namespace: eks-test
labels:
app: YOUR_PROJECT_NAME
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: YOUR_PROJECT_NAME
template:
metadata:
labels:
app: YOUR_PROJECT_NAME
spec:
containers:
- name: YOUR_CLUSTER_NAME
image: YOUR_AWS_ACCOUNT_ID.dkr.ecr.YOUR_AWS_REGION.amazonaws.com/YOUR_PROJECT_NAME:latest
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment