## get the machineconfigpool
$ oc get machineconfigpool
## see details
$ oc describe machineconfigpool worker
## add label to the machineconfigpool if not exist
$ oc label machineconfigpool worker custom-kubelet=small-pods
#eg:
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfigPool
metadata:
creationTimestamp: 2019-02-08T14:52:39Z
generation: 1
labels:
custom-kubelet: small-pods
## Create a custom resource (CR) for your configuration change.
## Setting podsPerCore to 0 disables this limit.
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: set-max-pods
spec:
machineConfigPoolSelector:
matchLabels:
custom-kubelet: small-pods
kubeletConfig:
podsPerCore: 10
maxPods: 250
## check the machines and wait for update
$ oc get machineconfigpool
## eg:
NAME CONFIG UPDATED UPDATING DEGRADED
master master-9cc2c72f205e103bb534 False False False
worker worker-8cecd1236b33ee3f8a5e False True False
How to set number of pods per node in OpenShift ?
Gineesh Follow
·
1 min read
Share this
Written by Gineesh Follow
Backpacker, Foodie, TechieLatest Stories
Featured
-
ChatGPT and Beyond Why Continuous Learning is Critical for IT Professionals
In ChatGPT, Cloud, DevOps, -
Why is Kubernetes certification so important 5 reasons I noticed
In Cloud, DevOps, Featured, -
Why is Kubernetes certification so important 5 reasons I noticed
In Cloud, DevOps, Featured, -
Free GitOps and CICD Courses and Certifications
In ArgoCD, DevOps, Featured, -
Terraform Cheat Sheet
In DevOps, Featured, Infrastructre & Hardware, -
Kubernetes vs OpenShift 8211 15 Facts You Should Know
In Cloud, DevOps, Featured, -
Introduction to OpenShift BootCamp
In DevOps, Featured, Kubernetes, -
How to set up and use Python virtual environments for Ansible
In Ansible, Automation, DevOps, -
5 Mistakes You Should Avoid During Kubernetes Exam
In Cloud, DevOps, Featured, -
10 Tips for your Kubernetes Exam 8211 CKA 038 CKAD
In DevOps, Featured, Kubernetes, -
CKA CKS 038 CKAD Learning Path and Certification
In Featured, Infrastructre & Hardware, Kubernetes,