terraform has all infraestructure as code for the entire stack.
Navigate to root of the module
cd roots/backend
terraform plan
terraform apply
NOTE: this destroys everything including data.
terraform destroy
All deployment of this project are made with the terraform kubernetes module instead of manually.
To use the kubectl command line tool you need to configure it to point at the cluster.
aws eks --region us-east-1 update-kubeconfig --name main_cluster
kubectl get deployment --all-namespaces
By namespace
kubectl get deployment -n namespace
kubectl get pods --all-namespaces
You can use this to see pods that might not be running or that have been crashing and restarting.
by namespace
kubectl get pods -n namespace
After making changes to the code and generating the new docker image you can use the following comand to update the container.
kubectl rollout restart deploy name_of_deployment