Getting Started
1. deployment folder
¶
- manifest yaml :: spring_app_v2
- 10_podDisruptionBudget.yaml
- 09_HPA.yaml vs Cluster Autoscaler
- deployment : deployment-1
- metric (single / mutli) :
- cpu and memory
- custom metric
- high traffic
- behaviour : policy - up /down
- stabilization window
- no/% of pod up/down, every x seconds
- must see: https://chat.deepseek.com/a/chat/s/00db1638-b5bc-4a70-a585-4a487e210a63
- scenarios:
- configure HPA for a stateful application
- mplement a "warm pool" for sudden traffic spike
- 08_external_secret.md
- annotation:
- 07_annotation-ingress.md
- 07_annotation-Pod.md
- 07_annotation-sa.md
2. Commnds¶
aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-vpcs --vpc-ids vpc-id-from-output --region us-west-2
aws eks list-fargate-profiles --cluster-name your-cluster-name --region us-west-2
aws ec2 describe-vpc-endpoints --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-route-tables --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-security-groups --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws eks describe-cluster --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2 --query "cluster.identity.oidc.issuer"
aws iam create-open-id-connect-provider --url https://oidc.eks.us-west-2.amazonaws.com/id/867FAFA03F6706024B5895223D5D3451 --client-id-list sts.amazonaws.co
aws eks get-token --cluster-name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2
aws eks update-kubeconfig --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2
aws eks describe-update --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --update-id 388626d9-068d-3325-b988-f15ecd94ee51 --region us-west-2
# got update it from trf logs
kubectl get configmap aws-logging -n kube-system
¶
aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-vpcs --vpc-ids vpc-id-from-output --region us-west-2
aws eks list-fargate-profiles --cluster-name your-cluster-name --region us-west-2
aws ec2 describe-vpc-endpoints --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-route-tables --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws ec2 describe-security-groups --filters "Name=vpc-id,Values=vpc-id-from-output" --region us-west-2
aws eks describe-cluster --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2 --query "cluster.identity.oidc.issuer"
aws iam create-open-id-connect-provider --url https://oidc.eks.us-west-2.amazonaws.com/id/867FAFA03F6706024B5895223D5D3451 --client-id-list sts.amazonaws.co
aws eks get-token --cluster-name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2
aws eks update-kubeconfig --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --region us-west-2
aws eks describe-update --name maps-outbound-us-west-2-dev2-eks-fargate-cluster --update-id 388626d9-068d-3325-b988-f15ecd94ee51 --region us-west-2
# got update it from trf logs
kubectl get configmap aws-logging -n kube-system
3. Comparison :: ECS vs EKS¶
- 02_Containers_ECS.md vs 02_Kubernetes_EKS.md
-
Clusters
- logical grouping of tasks or services.
- Equivalent to
Cluster in Kubernetes
-
Tasks
=== pod- A single running copy of a container defined by a task definition.
-
Task Definitions
== pod- Blueprints for your application that specify the container images, CPU, memory, and other settings.
-
Services
=== Replica Set- Allows you to run and maintain a specified number of instances of a task definition simultaneously.
-
Container Instances
== work Nodes- Amazon EC2 instances registered to your cluster and used to run tasks.
- Equivalent in Kubernetes:
Nodes
-
Elastic Load Balancing (ELB)
=== Service (specifically, LoadBalancer type)- Distributes incoming application traffic across multiple targets.
-
Auto Scaling
=== Horizontal Pod Autoscaler- Adjusts the desired count of tasks in a service automatically based on criteria.
-
ECS Agent
=== Kubelet- Software that runs on each container instance and communicates with ECS to start and stop tasks.
-
ECS Fargate
- A serverless compute engine for containers that eliminates the need to manage EC2 instances.
3. Okta (ignore)¶
- https://dev-16206041-admin.okta.com/
- https://dev-16206041.okta.com/
- https://dev-16206041-admin.okta.com/admin/app/oidc_client/client/0oal3d72smuSHBhwF5d7#tab-general
- client_id : 0oal3d72smuSHBhwF5d7
- issuer URI :
- https://dev-16206041.okta.com/oauth2/default (default)
- https://dev-16206041.okta.com/oauth2/ausl3dg4kkpyvEBft5d7