Lec-51 Complete Overview of Kubernetes Networking and Services.Kubernetes Services Types explained: ClusterIP vs NodePort vs LoadBalancer vs Headless Service vs Multi-Port.volumes in kubernetes like emptydir and hostpath.
==============================================
LEC-51 DEVOPS TECHNICAL GUFTGU NOTES
====================
Install Docker
$ sudo apt update && apt -y install docker.io
Install kubectl
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl
Install Minikube
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Start Minikube
$ apt install conntrack
$ minikube start –vm-driver=none
$ minikube status
=================================
KUBERNETES NETWORKING
=================================
kind: Pod
apiVersion: v1
metadata:
name: testpod
spec:
containers:
– name: c00
image: ubuntu
command: [“/bin/bash”, “-c”, “while true; do echo Hello-Bhupinder; sleep 5 ; done”]
– name: c01
image: httpd
ports:
– containerPort: 80
================
kind: Deployment
apiVersion: apps/v1
metadata:
name: mydeployments
spec:
replicas: 1
selector: # tells the controller which pods to watch/belong to
matchLabels:
name: deployment
template:
metadata:
name: testpod1
labels:
name: deployment
spec:
containers:
– name: c00
image: httpd
ports:
– containerPort: 80
====================
kind: Service # Defines to create Service type Object
apiVersion: v1
metadata:
name: demoservice
spec:
ports:
– port: 80 # Containers port exposed
targetPort: 80 # Pods port
selector:
name: deployment # Apply this service to any pods which has the specific label
type: ClusterIP # Specifies the service type i.e ClusterIP or NodePort
$ kubectl get svc
===========================
volume labs
===========================
apiVersion: v1
kind: Pod
metadata:
name: myvolemptydir
spec:
containers:
– name: c1
image: centos
command: [“/bin/bash”, “-c”, “sleep 15000”]
volumeMounts: # Mount definition inside the container
– name: xchange
mountPath: “/tmp/xchange”
– name: c2
image: centos
command: [“/bin/bash”, “-c”, “sleep 10000”]
volumeMounts:
– name: xchange
mountPath: “/tmp/data”
volumes:
– name: xchange
emptyDir: {}
========================
HOST PATH
========================
apiVersion: v1
kind: Pod
metadata:
name: myvolhostpath
spec:
containers:
– image: centos
name: testc
command: [“/bin/bash”, “-c”, “sleep 15000”]
volumeMounts:
– mountPath: /tmp/hostpath
name: testvolume
volumes:
– name: testvolume
hostPath:
path: /tmp/data
Now you can Donate us via Paypal or Google Pay
Paypal link : https://www.paypal.me/technicalguftgu
GooglePay/PhonePe/BHIM App UPI ID : [email protected]
Visit Our Website for all the Courses- www.technicalguftgu.in
Do subscribe to TECHNICAL GUFTGU channel and Press Bell icon & get regular updates on videos, DIRECT LINK TO CHANNEL : https://www.youtube.com/c/TechnicalGuftgu
Here are direct links of My All the Playlist: MUST CHECK
IPv6 Complete Tutorial for beginners Link : https://www.youtube.com/playlist?list=PLBGx66SQNZ8ZjaqNaEEh6KBJLZjGC8WAu
Microsoft Azure Tutorial for beginners in Hindi/Urdu AZ-103 and AZ-900 LINK : https://www.youtube.com/playlist?list=PLBGx66SQNZ8ZS9VhxzfWpne4c3ces9IHA
Cloud computing tutorials For beginners Link : https://www.youtube.com/playlist?list=PLBGx66SQNZ8ZoTCIRIGKvvtbKMj0rqCL-
AWS Solution Architect-Associate complete Tutorials Link : https://www.youtube.com/playlist?list=PLBGx66SQNZ8a_y_CMLHchyHz_R6-6i-i_
Devops tutorials in Hindi:-
https://www.youtube.com/watch?v=eX3ZimWWHh4&list=PLBGx66SQNZ8aPsFDwb79JrS2KQBTIZo10
CCNA Complete Tutorials /Computer Networking Link : https://www.youtube.com/playlist?list=PLBGx66SQNZ8ZvdIoctCTWB3ApXQpQGEin
Bhupinder Rajput Sir is having 8 Years of Experience in the field of technical trainings in entire india.
NOTE : If you would like to organise Bhupinder Rajput Sir workshop in your College or University, write mail to us.
For More Information:
Please write us at : [email protected]
Connect with us on facebook page-Technical Guftgu for his upcoming 5 Days workshops on cloud in india and Nepal. If you would like to donate and give support to our Channel, write mail to us.
Thanks For giving Your Valuable time.
Regards,
Technical Guftgu Team
source
What an amazing delivery skill you have. I am sure we will never find a YouTuber/ Teacher like you. I got job in DevOps because of this series. I was worrying about my career before getting job in DevOps. I had a dream to become a DevOps Engineer but I didn't know how to start and where should I do trainings. One day I just came to youtube and searched DevOps learning. Got this channel in suggestion list and started watching videos. Completed the series in Oct2021 and started searching jobs. Finally in December 2021 I got the job as DevOps Engineer.
Thank You so much Technical Guftgu.
bhupinder sir is one man army for devops leaners all the vidos are available with cleaster clear explanation. Thankyou so much sir for sharing such a great content not just thankyou is enough for such great work what you give to world it will return you the same.
ą¤®ą„ą¤ दिया ą¤¹ą„ą¤ ą¤®ą„ą¤°ą„ ą¤¦ą„ą¤¶ą„ą¤®ą¤Øą„ ą¤¤ą„ ą¤øą¤æą¤°ą„ą„ ą¤ ą¤ą¤§ą„ą¤°ą„ ą¤øą„ ą¤¹ą„,
~
हवा ą¤¤ą„ ą¤¬ą„ą¤µą„ह ą¤¹ą„ ą¤®ą„ą¤°ą„ ą„ą¤æą¤²ą¤¾ą„ हą„ā¦šš
A man with golden heartā¤
I never seen anyone in my entire professional and college career someone like Bhupi Sir.
He teaches with smooth and really words are also not enough for Bhupi Sir.
I am from Pune.. Previously I wasted my money in training institutes now realizing after listening sir lectures.
In future for sure I will start donating as Guru-Dakshina and will share across my groups too.
Sir, please eagerly wait for GCP series.
Sir you are really amazing
….
You are very very good teacher awesome..i have never seen teacher like Bhupinder sir šš
Sir, you are the Best Teacher ….
What is NAT and how it is related to Services?
thank you
Amazing lecture. Thank you so much sir.
Thank you very much
congrats sir
Thanks
Awesome video sir
Mazaa aa jata hai sir
The way you teaching šššš
respected sir, please provided these notes in pdf format on telegram group. Thanks
Thank you very much.
Bhupinder bhai, many thanks. My K8s networking concepts got cleared. liked your khuddari wali shayari š, May Almighty bless you with all happiness
Great Video sir!!
Can you please provide your telegram channel link?
great video by a great person…whenever i learn anything from anywhere and cannot get then i check this site..couldnt get about the nodeport services but here its like crystal clear..thank you sir..š
Sir ji. Ek hi dil hai kitni bar jitoge.Apki coaching mashallah or shayri subhanallah.
all ports are allowed as you did to make ec2 instance but when um doing not being able to access on nodeport…
Thank you sir for all this content,God bless you all the happiness in your life
Sir please file sharing type nfs aur cloud provide etc ko bhi padha dijiye…
thankuu sirr….
sir when ever i am installing minikube it showing error and connection refused 8080 did u specify right port like this coming sir
Thank you Bhupinder Sir ā¤ļø
In Pod to Pod communication, Using Curl, we checked communication from host machine to testpod1 and then hostmachine/workernode to testpod4. Isn't it should be testpod1 to testpod4? Our objective was pod to pod communication. Not workernode to pods
Thank you very much sir for such details content of the topic.
One more feature of hostpath which I think will be as the volume is mounted with the host machine now even POD get deleted but still data is safe as it is mounted by host which is drawback of emptydir type volume.
Bhupi sir, ceph storage per plz ek series bnaye.
lajawaab guru ji
What if we have three containers with in the pods and both have httpd service running with port 80?
Sir while inatlling Kubectl, i am getting below error, please help
<?xml version='1.0' encoding='UTF-8'?><Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Details>Invalid bucket name: 'kubern…'</Details></Error>chmod: cannot access './kubectl': No such file or directory
superb sir, earlier i was thinking that kubernetes is tough but after your video, it looks like normal.š„°
Very good explanation
Thanks!
I am from Pakistan. You are a great person. and great trainer.
Nice video bhupinder sir
also unable to access AWS DNS from browser and it says page cant be displayed
Hello Sir,
unable to access nginx pod using curl command….it says connection refused.. please assist
You are a good human being!!
Awesome tutorial as always. I just want to know that ingress controllers is not part of k8s networking?
Awesome
u have all my Respect Sir
Superb…
Sir har docker container ki apni internal ip hoti hai docker daemon assign karta hai correct me if I'm wrong
Got connection refused. i think should use targetport too
can someone share the technical guftagu telegram link, thanks
Great Video sir!!