Kubernetes Notes for July 2023

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now
CRUD
	Create
		cmd
			create
		yaml	
			create -f yaml
	READ
		cmd
			get
			describe
		yaml
			get -f yaml
	Update
		cmd	
			edit
		yaml
			apply -f yaml
	Delete
		cmd
			delete
		yaml
			delete -f yaml
	
	

Namespace		**** 
========================================


POD			VMS
Deployment		ASG
Services		LB
	- ClusIP
	- nP
	- LB
	- EXTIP

   65  kubectl
   66  kubectl version
   67  kubectl api-resources
   68  kubectl
   69  kubectl api-versions
   70  kubectl
   71  kubectl cluster-info


 32  kubectl get nodes
   33  kubectl get pods --all-namespaces
   34  kubectl get node
   35  clear
   36  kubectl get nodes
   37  kubectl
   38  clear
   39  kubectl api-resources
   40  clear
   41  kubectl get pods --all-namespaces\
   42  kubectl get pods --all-namespaces
   43  kubectl api-resources
   44  kubectl api-resources | wc -l
   45  clear
   46  kubect
   47  clear
   48  kubectl
   49  clear
   50  kubectl get ns
   51  kubectl create ns rajesh
   52  kubectl get ns
   53  kubectl create ns dev
   54  kubectl get
   55  clear
   56  kubectl get ns
   57  kubectl describe ns rajesh
   58  clear
   59  kubectl edit ns rajesh
   60  kubectl describe ns rajesh
   61  kubectl get ns
   62  kubectl delete ns dev
   63  kubectl get ns
   64  history


apiVersion: v1
kind: Pod
metadata:
  name: rajesh
  labels:
    app: helloworld
spec:
  containers:
  - name: devopsschool1
    image: scmgalaxy/nginx-devopsschoolv1
    ports:
    - name: nginx-port
      containerPort: 80



 75  mkdir rajesh
   76  cd rajesh/
   77  ls
   78  vi pod.yaml
   79  kubectl get ns
   80  kubectl apply -f pod.yaml
   81  kubectl get pods
   83  clear
   84  kubectl get pods -o wide
   85  curl http://192.168.1.2
   86  kubetl get pods
   87  kubectl get pods
   88  kubectl describe -f pod.yaml
   89  clear
   90  ls
   91  vi pod.yaml
   92  kubectl describe -f pod.yaml
  
   96  kubectl apply -f pod.yaml
   97  kubectl describe -f pod.yaml
   98  clear
   99  ls
  100  kubectl delete -f pod.yaml
  101  history





Subscribe
Notify of
guest

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

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x