Summary
Keywords
Full Transcript
LEC-52-Kubernetes complete tutorials. ==================== 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 ================================= PERSISTENT VOLUME ================================ apiVersion: v1 kind: PersistentVolume metadata: name: myebsvol spec: capacity: storage: 1Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Recycle awsElasticBlockStore: volumeID: # YAHAN APNI EBS VOLUME ID DAALO fsType: ext4 ============ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: myebsvolclaim spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi ================================================================================================================== apiVersion: apps/v1 kind: Deployment metadata: name: pvdeploy spec: replicas: 1 selector: # tells the controller which pods to watch/belong to matchLabels: app: mypv template: metadata: labels: app: mypv spec: containers: - name: shell image: centos command: ["bin/bash", "-c", "sleep 10000"] volumeMounts: - name: mypd mountPath: "/tmp/persistent" volumes: - name: mypd persistentVolumeClaim: claimName: myebsvolclaim ========================================================================================================================== HEALTHCHECK/LIVENESSPROBE ========================================================================================================================== apiVersion: v1 kind: Pod metadata: labels: test: liveness name: mylivenessprobe spec: containers: - name: liveness image: ubuntu args: - /bin/sh - -c - touch /tmp/healthy; sleep 1000 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 30 ---------------------------------------- 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 : 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 This is the best channel for AWS Tutorials, Microsoft Azure tutorials, 2G,3G, LTE, CCNA, Cloud computing and for others topics related to cloud and computer networking. Technical Guftgu is the only platform, which provides you entire training on white board, so that you feels that, you are taking real time training. 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
