Kubernetes Networking- Hindi/Urdu | Lec-51 | Kubernetes Services, Nodeport and Volumes | DevOps

Technical Guftgu
Technical Guftgu
146.4 هزار بار بازدید - 3 سال پیش - Lec-51 Complete Overview of Kubernetes
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/kubern... -s https://storage.googleapis.com/kubern... &&   chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl

Install Minikube
$  curl -Lo minikube https://storage.googleapis.com/miniku... && 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  : bhupinderccs@okaxis

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 : technicalguftgu

Here are direct links of My All the Playlist: MUST CHECK
IPv6 Complete Tutorial for beginners Link : IP Version 6 Tutorials in hindi/Urdu ...

Microsoft Azure Tutorial for beginners in Hindi/Urdu AZ-103 and AZ-900 LINK : Microsoft Azure Tutorial for Beginner...

Cloud computing tutorials For beginners Link : Cloud Computing Tutorial for Beginner...

AWS Solution Architect-Associate complete Tutorials Link : AWS Solution Architect & Sysops Tutor...

Devops tutorials in Hindi:-
What are the Pre-requisite for Devops...

CCNA Complete Tutorials /Computer Networking Link : CCNA Full course in Hindi/Urdu | Comp...

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
3 سال پیش در تاریخ 1400/08/28 منتشر شده است.
146,402 بـار بازدید شده
... بیشتر