=======================================
Namespace DONE
POD
ReplicationController
Deployment
=====================================
What is Namespace?
Secret Formula
------------------------------------
C
CMD
create
YAML
create -f yaml
R
CMD
get
describe
YAML
get -f yaml
U
CMD
edit
YAML
apply -f yaml
D
CMD
delete
YAML
delete -f yaml
root@ip-172-31-46-170:/home/ubuntu# kubectl get ns
NAME STATUS AGE
default Active 19h
kube-node-lease Active 19h
kube-public Active 19h
kube-system Active 19h
root@ip-172-31-46-170:/home/ubuntu#
79 clear
80 ls
81 kubectl get ns
82 kubectl create ns raj
83 kubectl get ns
84 kubectl describe ns raj
85 kubectl edit ns raj
86 kubectl describe ns raj
87 kubectl delete ns raj
88 history
Namespace LAB
Working with Kubernetes PODS
112 ls
113 vi pod.yaml
114 kubectl create -f pod.yaml
115 kubectl get pods
116 kubectl create ns rajesh
117 kubectl create -f pod.yaml
118 kubectl create -f pod.yaml -n=rajesh
119 kubectl get pods
120 kubectl get pods -n=rajesh
121 kubectl describe pod rajesh
122 clear
123 vi pod.yaml
124 kubectl apply -f pod.yaml
125 kubectl describe pod rajesh
126 clear
127 ls
128 kubectl apply -f pod.yaml -n=rajesh
129 kubectl delete -f pod.yaml
130 kubectl delete -f pod.yaml -=rajesh
131 kubectl delete -f pod.yaml -nrajesh
132 kubectl apply -f pod.yaml
133 kubectl get pods
134 kubectl get pods --show-labels
135 kubectl get pods -o wide
136 curl http://192.168.1.4
ReplicationController
KIND: Pod
Replication --> 1 TO MANY
Controller --> DESIRE === Actual
===================================
https://www.devopsschool.com/blog/kubernetes-replicationcontroller-example-programs/