AWS EKS
- Now AWS Access Management is handled via EKS access entries over aws-auth-config
Creating a PVC
- Storage with eks
- Refer Here for EBS CSI Driver steps
AWS EKS Auto Mode
- In this mode Nodes will be auto provisioned
Scheduling Pods to Nodes in k8s
- Assigning Pods to Nodes has 4 options
- node selector
- Affinity and Anti Affinity
- node Name
- Taints and Tolerations
- For examples watch classroom recording
Affinity and Anti Affinity
- official docs
- Pod Affinity and Antiaffinity
---
apiVersion: v1
kind: Pod
metadata:
name: abc
labels:
name: abc
spec:
nodeSelector:
myenv: staging
containers:
- name: abc
image: nginx
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
---
apiVersion: v1
kind: Pod
metadata:
name: abc-friend
labels:
name: abc-friend
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
name: abc
topologyKey: myenv
containers:
- name: abc
image: nginx
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
---
apiVersion: v1
kind: Pod
metadata:
name: abc-enemy
labels:
name: abc-enemy
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
name: abc
topologyKey: myenv
containers:
- name: abc
image: nginx
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
Taints and Tolerations
- Watch classroom video
What do Helm and Kustomize Solve
- Both this tools offer making kubernetes yamls dynamic in their own ways
- Helm represents itself as a package manager for kubernetes
Helm (Package manager for kubernetes)
Terminology
- Repository: A repository consists of multiple charts with versions
- Chart: This represents an application/utility that can be installed in kubernetes (This chart somehow generates a dynamic yaml when executed)
How to create a chart
- TO create chart use
helm create <chart-name>

