This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net" | |
| ) | |
| func main() { | |
| ln, err := net.Listen("tcp", ":8080") |
Add annotations to pod:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/data/metrics'
prometheus.io/port: '80'
-
Install session manager plugin: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html#install-plugin-linux
-
Authorize ssh key in ec2-user
-
Set up aws profile
prd, login into it, etc. -
Use this config:
Search CloudWatch logs for: timed "Task timed out after"
https://aws.amazon.com/premiumsupport/knowledge-center/lambda-sqs-scaling/
k -n <NAMESPACE> annotate sa <SA> eks.amazonaws.com/role-arn=arn:aws:iam::<ACCOUNT>:role/<ROLE>
https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
test:
k -n eraseme run aws --image=amazon/aws-cli:latest --command -- bash -c "env; aws sts get-caller-identity; aws s3 ls s3://BUCKET; sleep 300"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mongo Curso | |
| https://university.mongodb.com/courses/M001/about | |
| Mongo Performance | |
| https://docs.mongodb.com/manual/tutorial/analyze-query-plan/ | |