DevOps Classroom notes 22/Mar/2025

AWS EKS

Creating a PVC

AWS EKS Auto Mode

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

---
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>
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Plugin for Social Media by Acurax Wordpress Design Studio
Exit mobile version
%%footer%%