Lets try to connect to the POD nginx running . List the pods in the cluster and see if it is running or not root@master:/tmp#
Author: admin
Create pv.yaml k create -f pv.yaml PV is created and now developer can use it . k describe pv to get more details . Create
if you want o upgrade the host os for any of the node in the kubernetes cluster you need to put the node in maintenance
RBAC stands for role base access control . k get role k get rolebindings k create clusterole –help –verb –> this is something that sets
static pods are some pods which will be created and managed by Kubelet . In the below example yaml file inside the node1 manifest. here
you can just run with –dry-run=client option to generate yaml file. Which is then you can add any other elements or delete if you pass
Affinity k8s conigMap Resource Limits Limits and Requests are important settings when working with Kubernetes. This article will focus on the two most important ones:
below we are using replication controller to stick Node2 to be scheduled kubectl scale –replicas=20 rc/myapp-rc if we see above all are created in Node2
replication controller is to manage HA with the pods in short terms . root@master:/tmp# k create -f test-rc.yamlreplicationcontroller/myapp-rc createdroot@master:/tmp# Deleting the replication controller will delete
list the nodes in the k8s cluster [ run it on the master node ] display default pods in the cluster To get more [