[ Kube 46 ] Kubespray Vagrant Demo

  Рет қаралды 11,321

Just me and Opensource

Just me and Opensource

Күн бұрын

In this video I will show you how to use Kubespray to provision a highly availablie Kubernetes cluster using Vagrant and Virtualbox. This demo will use the default vagrantfile which provisions a 3 node Kubernetes cluster with 2 master nodes and all 3 will be worker nodes. Etcd will be installed on all the 3 nodes. The OS will be Ubuntu 18.04. All these are customizable though.
Github:
github.com/justmeandopensourc...
Kubespray:
github.com/kubernetes-sigs/ku...
Hope you found this video useful. Please share it with your friends and don't forget to subscribe to my channel. For any questions/feedback/issues, please leave me a comment. Thanks for watching this video
If you wish to support me:
www.paypal.com/cgi-bin/webscr...

Пікірлер: 84
@rsrini7
@rsrini7 5 жыл бұрын
Thanks Venkat. Such a wonderful clear explanations :) Another Good video series started. Happy while seeing notification about your video.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Thanks Srini.
@SBJK7
@SBJK7 5 жыл бұрын
Your videos are super awesome bro... yesterday I setup whole K8S clusters with the help of your guide videos :):):) thanks alot
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Many thanks for watching this video. Cheers.
@SBJK7
@SBJK7 5 жыл бұрын
@@justmeandopensource I have couple of query in deploying Prometheus..is there anyway I can contact you ?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@SBJK7 Hi, I have done a video on Prometheus in Kubernetes for metrics monitoring. If you are interested please watch it in the below link. kzbin.info/www/bejne/eZ6zlaysnNKqY6M. If you have any other questions related to Prometheus, you can start a comment thread in that video. Unfortunately I don't have the privilege of time outside of KZbin comments. Thanks.
@JordyBayoCoding
@JordyBayoCoding 5 жыл бұрын
thx venkat it was very clear
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Thanks for watching this video. Cheers
@jimbo-dev
@jimbo-dev 2 жыл бұрын
Nice video, thanks 👍
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Jimi, Thanks for watching.
@mukhtarali9476
@mukhtarali9476 5 жыл бұрын
Awesome explanation Venkat :)
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Mukhtar, thanks for watching this video. Cheers.
@mukhtarali9476
@mukhtarali9476 4 жыл бұрын
please make a series on istio
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@mukhtarali9476 Yeah sure. That's in my list. Cheers.
@mukhtarali9476
@mukhtarali9476 4 жыл бұрын
Thank you
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@mukhtarali9476 you are welcome. Cheers
@markistheone947
@markistheone947 4 жыл бұрын
Hey Venkat, congrats on all your videos, very well done. Can you point me to a video or link of a good solution for Persistent Volume to be used in production on bare metal? I'm using Ceph/Rook right now, but wonder what in your opinion is the best choice if we have different hard drive disk's size and speed on each machine? Thx
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Mark, thanks for watching. I have no experience managing a production grade k8s cluster or a very large cluster. All my knowledge is through self learning and few local development clusters. I thik Ceph/Rook is the thing these days as they are cloud native. Also you can look at Gluster FS/PortWorx/OpenEBS and a lot more cloud native storage solutions out there. I haven't tried any of these in depth to be able to share pros and cons. Cheers.
@jlan421
@jlan421 5 жыл бұрын
Venkat, awesome video as always! Any plans on making kubespray/LXC video? Tried your k8s/lxd provisioning scripts for v1.14.3 and worked perfectly, v1.15 seems to be problematic.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi, Thanks for watching this video. Yeah, I am yet to uncover the issue of running v1.15 in LXC. And Kubespray/LXC is a nice idea, which I never thought about. I will have a look if at all it is possible. Thanks for suggesting this. Cheers.
@90DaysOfDevOps
@90DaysOfDevOps 2 жыл бұрын
Great video but has your Kubernetes repo changed since the video as I cannot find the kubconfig files to access the created cluster? I mean around the 17min mark I don't have that folder layout with the folder linked in the description
@90DaysOfDevOps
@90DaysOfDevOps 2 жыл бұрын
I was able to login kmaster and then access the admin.conf in /etc/kubernetes but not sure if that is what you showed in this video unless i missed a step
@dineshasabe9307
@dineshasabe9307 5 жыл бұрын
Excellent Video. Could you please make a video on RBAC and Spinnaker?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Dinesh, thanks for watching this video and taking time to comment. I have lots of videos planned for Kubernetes series. And Spinnaker is on the list. I trying to find some time to understand Spinnaker. At the moment focusing on another series on AWS as well. Thanks again for your interests in my videos.
@samnickerson9255
@samnickerson9255 4 жыл бұрын
Great video! My only issue is how to connect from another machine on the host network? I used libvirt on Ubuntu: sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils add user to groups (kvm, libvirtd) sudo adduser `id -un` libvirtd systemctl start libvirtd systemctl enable libvirtd vagrant plugin install vagrant-libvirt ADDED to the Vagrantfile: ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Sam, thanks for watching this video. I was using kvm libvirt for my Kubernetes cluster for a while. It was working fine. One of my requirement was to use MetalLB for load balancing in the Kubernetes cluster. MetalLB didn't work with libvirt network interfaces. So I fell back to using VirtualBox as the hypervisor. So no idea about your issue unfortunately.
@MrNiceseb
@MrNiceseb 3 жыл бұрын
Please share why dashboard is not present when we do: kubectl -n kube-system get all. Also shown here or subsequent video how to deploy a typical GuestBook application?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Sebastian, thanks for watching. I have to watch this video again to refresh my memory. But have you checked other namespaces too? Recent versions of dashboard gets deployed in kubernetes-dashboard namespace. Cheers.
@RogerBaello
@RogerBaello 4 жыл бұрын
Hello Venkat, I followed your excellent video and all went well except for when i try to access the dashboard, after putting in the token, I get "the server could not find the requested resource". Any idea what I missed?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Roger, thanks for watching. Did you check the dashboard pod logs? Are you using the right service account token?
@RogerBaello
@RogerBaello 4 жыл бұрын
The token looks correct. Here's what i see in the log. "Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds."
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@RogerBaello Hi Roger, I need to test this again. Are you using the latest master branch of Github Kubespray? I did this video long time ago and things might have changed. Heapster has been deprecated in favour of metrics server. Heapster/Metrics server help in collecting metrics from your cluster to be displayed in the dashboard. What you can also do is disable dashboard addon. It will be in the file inventory/group_vars/k8s-cluster/addons.yml. You can set dashboard_enabled to false and use my other video to deploy dashboard. kzbin.info/www/bejne/bH7RpIaseM2fZ6c Cheers.
@mouhamedfall3792
@mouhamedfall3792 4 жыл бұрын
Hi Venkat, Thanks for this video so is ti possible to deploy kubespray in Lxc container ??
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Mouhamed, thanks for watching. One other person also asked the same question. I haven't tried that yet. May be I should give it a go. LXC containers are no different than a Virtual machine. Kubespray uses ansible to deploy kubernetes cluster in a set of machines. I hope it should work. Thanks.
@mouhamedfall3792
@mouhamedfall3792 4 жыл бұрын
@@justmeandopensource Thanks you a lot for your answer Best regards
@justmeandopensource
@justmeandopensource 4 жыл бұрын
You are welcome. Cheers.
@MrNiceseb
@MrNiceseb 3 жыл бұрын
cp admin.conf ~/.kube/config will overwrite existing config file? "kubectl -n kube-system get all" ,but missing pod/kubernetes-dashboard ? Where to enable # dashboard_enabled: true
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Yes. It will. Or download it to different file and merge it manually with existing config if you have other clusters configured in there. Cheers.
@user-fe9oe9qp5h
@user-fe9oe9qp5h 4 жыл бұрын
What operating system are you using and what is this terminal? He looks cool
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching. I used Manjaro Linux with I3 tiling window manager. I have done few videos on the I3 setup and how to get one in various distros. If you are interested, please have a look at the below playlist. Cheers. kzbin.info/aero/PL34sAs7_26wOgqJAHey16337dkqahonNX
@ganabajana5416
@ganabajana5416 4 жыл бұрын
Hi Venkat I am getting below error while deploying my ansible playbook on ec2 instance . fatal: [node2]: FAILED! => { "assertion": "ip in ansible_all_ipv4_addresses", "changed": false, "evaluated_to": false, "msg": "Assertion failed" } fatal: [node3]: FAILED! => { "assertion": "ip in ansible_all_ipv4_addresses", "changed": false, "evaluated_to": false, "msg": "Assertion failed" } fatal: [node1]: FAILED! => { "assertion": "ip in ansible_all_ipv4_addresses", "changed": false, "evaluated_to": false, "msg": "Assertion failed" }
@injuriousentertainment6642
@injuriousentertainment6642 4 жыл бұрын
Hi Venkat, how can we issue valid certificate for apiserver(xx:6443) as the cert generated is invalid when i opened in browser. any idea how it will be in production
@justmeandopensource
@justmeandopensource 4 жыл бұрын
HI Muni, thanks for watching. Yes, the certificates generated by Kubeadm are self generated certificates. I haven't dealth with certificates in a production environment. There is "Kubernetes The Hard Way" documentation, which talks about generating the certificates that might help. Cheers.
@huongminh196
@huongminh196 Ай бұрын
17:14 i get this err when cmd kubectl cluster-info. Can you help me error: cluster "minikube" does not exist
@huongminh196
@huongminh196 Ай бұрын
I realize because i've installed minikube and alias kubectl to minikube kubectl. after ```unalias kubectl```, it's worked.
@nareshpandian1321
@nareshpandian1321 4 жыл бұрын
Hi Venkat bro , Could you make a video of multi node master and multi node of etcd . Like HA ... Need to know if master 1 is down ,how master 2 is up and etcd too Not in vagrant and container . If it possible make a video on individual node it may be in oracle vm or virtual box
@nareshpandian1321
@nareshpandian1321 4 жыл бұрын
And also for how the new node is connect with existing cluster and same for master node
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@nareshpandian1321 I am preparing for that video. Already practised it couple of times. Works perfectly with multi-master. I will soo n record a video, but it will be released after 2 months as there are other videos waiting to be released. But once I record it, I will share it with you privately. Thanks.
@nareshpandian1321
@nareshpandian1321 4 жыл бұрын
Just me and Opensource sure bro . thanks.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@nareshpandian1321 You are welcome.
@venkatk8314
@venkatk8314 5 жыл бұрын
Hi Venkat Are you planning to make a video on Istio.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Venkat, thanks for watching this video. Yes I have plans to make videos on Istio. I indeed played with it and have content ready for few topics. There were videos around other topics that were waiting in the queue to be released. I will start recording and release it in the coming weeks. Thanks.
@venkatk8314
@venkatk8314 5 жыл бұрын
@@justmeandopensource Thank you venkat
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@venkatk8314 you are welcome. Cheers.
@Suresh-zo3ed
@Suresh-zo3ed 4 жыл бұрын
Hi @Just me and Opensource Can you please provide any document for setting up kubernetes cluster on VM's using kubespray. I am facing lot of issues while setting kubernetes cluster using kubespray
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Suresh, thanks for watching. I have done one video on kubespray which you can watch at kzbin.info/www/bejne/mquQn6iOl9ukjbc. I have also done another 4 videos around kubespray which are scheduled to be released on 16, 17, 18, 19 & 20th of December. Unfortunately you will have to wait for a month as there are other videos before that waiting to be released. Thanks.
@Suresh-zo3ed
@Suresh-zo3ed 4 жыл бұрын
@@justmeandopensource Thanks for reply I am not using Vagrant Can you help me setting up kubernetes cluster on VM'S manually I am facing lot of issues
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@Suresh-zo3ed Let me know your email, I will share the private video links.
@Suresh-zo3ed
@Suresh-zo3ed 4 жыл бұрын
@@justmeandopensource tedlasuresh@gmail.com
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Shared couple of videos. Hope you will find them useful. Cheers.
[ Kube 47 ] Using PodPreset in Kubernetes
37:21
Just me and Opensource
Рет қаралды 2,4 М.
[ Kube 65.1 ] Kubespray - Kubernetes cluster provisioning
21:35
Just me and Opensource
Рет қаралды 29 М.
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 20 МЛН
Bulk Current Injection test. BCI probe model adjustment and simulation.
11:43
How to Deploy an AI-Optimized K8s Cluster with Kubespray - Kay Yan & Mohamed Zaian
32:58
CNCF [Cloud Native Computing Foundation]
Рет қаралды 591
[ Kube 26 ] Prometheus monitoring for Kubernetes Cluster and Grafana visualization
34:09
Deploy Kubernetes in your Homelab: How to use Kubespray
23:53
James Rhoat
Рет қаралды 10 М.
Deploying kubernetes using Kubespray
14:55
Remko Deenik
Рет қаралды 16 М.
Установка Kubernetes при помощи Kubespray
48:10
Артур Крюков
Рет қаралды 12 М.
[ Kube 33.2 ] Deploy MetalLB in Kubernetes | Load Balancing solution
12:04
Just me and Opensource
Рет қаралды 21 М.