A Repo Which Consist Code For EKS TF Infra, Bitbucket Pipeline With Docker & ArgoCD GitOps With EKS Addons
replicas: 2
template:
spec:
nodeSelector:
eks.amazonaws.com/nodegroup: your-nodegroup-label
containers:
- name: your-container-name
image: your-ecr-url/your-image-name:image-tag
Remember to keep the replicas to even number so that app will be distributed evenly.
containers:
- name: your-app
lifecycle:
postStart:
exec:
command: ["/usr/local/bin/node", "services/executeMe.js"]
This will execute the command on every pod launch.
new repo