Set up Kubernetes cluster
Create a deployment and expose it with a load balancer
Take note of the load balancer IP address and add it to the terraform.tfvars file
terraform init
terraform plan
- Stage changes to Cloudflare infrastructure (DNS records)
terraform apply
- Push changes to Cloudflare infrastructure
terraform destroy
- Remove all Cloudflare infrastructure
kubectl scale deployments/flask-deployment --replicas=#
- Scale deployment to specified # of pods
kubectl set image deployments/flask-deployment flask-website=ahervias77/flask-website:tag
- Rolling update
kubectl rollout status deployments/flask-deployment
- Rollout status
kubectl rollout undo deployments/flask-deployment
- Undo rolling update
LogDNA Agent v2 Setup: https://docs.logdna.com/docs/logdna-agent-kubernetes
Datadog: https://docs.datadoghq.com/agent/kubernetes/?tab=helm