ingress controller
- Ingress in kubernetes:
- Ingress: This is all about your rules
- IngressController: This is responsible for doing layer 7 lb. This is not available by default & we need to install an external ingress controller.
-
In Layer 7 LB, we can perform
- Path based routing
- Hostname based routing
- Azure AKS Ingress Controllers
- Routing using nginx ingress controller
- Azure Application Gateway Ingress Controller
- Istio Gateway
- Refer Here for the manifests used in the class
- If you need to rewrite target Refer Here this example
- Azure Allows to automatically scale nodes
- KEDA Based Scaling
AWS Elastic Kubernetes Services (EKS)
- AWS EKS has following offerings
- EKS
- EKS Fargate
- EKS Anywhere
Creating an eks cluster
- eksctl is the tool created to create/manage kubernetes clusters
- Ensure AWS CLI is configured
- Create an eksctl enabled yaml file
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: learning-cluster
region: ap-south-1
nodeGroups:
- name: ng-1
instanceType: t2.large
desiredCapacity: 2
- To create cluster execute
eksctl create cluster -f eks.yaml - Once this is created the kubeconfig also will be applied
- To get kubeconfig
aws eks update-kubeconfig --region region-code --name my-cluster
- We have tried running aks store and it was working
AWS Specific features of k8s
- VPC-CNI: Pods are getting ip address from cidr ranges of vpc
- LoadBalancer: AWS Specific LoadBalancer annotations
- Identity in AWS EKS:
- Storage Classes: AWS by default gives gp2 storage class
- Creating storage classes in eks
AWS EKS – IAM
- How to handle user management in AWS EKS
- To be discussed next week
