Тёмный

[ Kube 11 ] Jobs & Cronjobs in Kubernetes Cluster 

Just me and Opensource
Подписаться 65 тыс.
Просмотров 42 тыс.
50% 1

In this video I will show you a demo of how to schedule jobs and cronjobs to Kubernetes Cluster.
Github: github.com/justmeandopensourc...
If you have any questions or feedback, please drop me a comment and I will get back to you.
If you wish to support me:
www.paypal.com/cgi-bin/webscr...

Опубликовано:

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 162   
@audioplatform6299
@audioplatform6299 4 года назад
you are one of those people who make the world a better place!! .. keep it up.. Excellent videos
@justmeandopensource
@justmeandopensource 4 года назад
Hi, many thanks for following my videos and taking time to comment/appreciate. Cheers.
@solidUntilLiquidBeforeGas
@solidUntilLiquidBeforeGas 4 года назад
Really enjoy your videos! Very easy to follow and packed with information, while avoiding unnecessary details. On a separate thread, can you please share/post a short video on how you have your zsh configured? Appreciate all you do. Please keep these coming! Kudos.
@justmeandopensource
@justmeandopensource 4 года назад
Hi, thanks for watching. I have done a video long time ago about my terminal setup. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-soAwUq2cQHQ.html But since then I have changed a lot and now I am using Gentoo but zsh and its configurations still remain the same. Basically, its zsh > zsh-autosuggestions > oh-my-zsh I have been wanting to do a video of my current setup which I will at some point. Cheers.
@pacnet8421
@pacnet8421 4 года назад
Thanks a bunch. This video explained jobs very well, and helped me tremendously. Other videos confused me.
@justmeandopensource
@justmeandopensource 4 года назад
HI Pacnet, thanks for watching.
@praveshjangra07
@praveshjangra07 4 года назад
Great demo , coverd all the aspects. Thank you!!
@justmeandopensource
@justmeandopensource 4 года назад
Hi Pravesh, thanks for watching.
@samtuneful
@samtuneful 5 лет назад
Great video, thank you for explaining that so well.
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Samit, Thanks for watching this video.
@Thomas-ys5dc
@Thomas-ys5dc 2 года назад
Fantastic video, exactly what I was looking for
@justmeandopensource
@justmeandopensource 2 года назад
Hi Thomas, thanks for watching.
@raymondlaliberte
@raymondlaliberte 3 года назад
Really nice video & demo. Well done. Well prepared. Great examples for starter with this K8S subject. Thumbs up! :-)
@justmeandopensource
@justmeandopensource 3 года назад
Hi Jeff, thanks for watching. Cheers.
@zulhilmizainudin
@zulhilmizainudin 4 года назад
Thank you so much Venkat for all your awesome videos. Very helpful.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Zulhilmi, thanks for watching.
@hartmannsson
@hartmannsson 2 года назад
Thanks for a clear and concise video. Subscribed.
@justmeandopensource
@justmeandopensource 2 года назад
Hi Brynjar, Thanks for watching.
@based3765
@based3765 Год назад
subbed, unbelievably clear explanation
@justmeandopensource
@justmeandopensource Год назад
Glad to hear that. Many Thanks for watching.
@nesreenmohd665
@nesreenmohd665 2 года назад
Thank you that was really useful.
@justmeandopensource
@justmeandopensource 2 года назад
Thanks for watching. Cheers.
@richardwang3438
@richardwang3438 4 года назад
hey Venkat, Im just looking forward to seeing 10,000 subcribers by the end of this year, wouldn't it be great!
@justmeandopensource
@justmeandopensource 4 года назад
Hi Richard, i wish the same but it won't happen before the end of the year. As per the rate of increase, I will hit 10k in the first week of January.
@richardwang3438
@richardwang3438 4 года назад
@@justmeandopensource let's see!
@justmeandopensource
@justmeandopensource 4 года назад
@@richardwang3438 Actually it might happen. 2 more days to go and I am now at 9974.
@richardwang3438
@richardwang3438 4 года назад
@@justmeandopensource yes! my friend, I am keeping an eye on it :)
@justmeandopensource
@justmeandopensource 4 года назад
@@richardwang3438 :)
@romantsyupryk3009
@romantsyupryk3009 4 года назад
Thanks so much for this tutorial.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Roman, thanks for watching.
@sreeprakashneelakantan5051
@sreeprakashneelakantan5051 4 года назад
I wish Venkat's videos get included in Kubernetes official documentation
@justmeandopensource
@justmeandopensource 4 года назад
Wow. That was a great compliment. Thanks for these words. Cheers.
@TheProximator
@TheProximator Год назад
Wonderfull man, thanks a lot :)
@justmeandopensource
@justmeandopensource Год назад
Hi, Thanks for watching.
@manishtripathi7363
@manishtripathi7363 2 года назад
Very well explained 👍
@justmeandopensource
@justmeandopensource 2 года назад
Hi Manish, thanks for watching.
@udayalwala3859
@udayalwala3859 3 года назад
hi venkat..nice explanation..keep up the good work.
@justmeandopensource
@justmeandopensource 3 года назад
Hi Uday, thanks for watching. Cheers.
@BharatSingh-hf1yt
@BharatSingh-hf1yt 3 года назад
Amazing content , thanks for the video great video
@justmeandopensource
@justmeandopensource 3 года назад
Hi Bharat, thanks for watching. Cheers.
@huzaifaaslam5266
@huzaifaaslam5266 4 года назад
awesome explanation
@justmeandopensource
@justmeandopensource 4 года назад
Hi Huzaifa, thanks for watching.
@sanjaypal-qp5xj
@sanjaypal-qp5xj 2 года назад
thank you for creating video
@justmeandopensource
@justmeandopensource 2 года назад
Hi Sanjay, thanks for watching.
@yovangrbovich3577
@yovangrbovich3577 4 года назад
Thanks for the great vid! Would love to see some on Argo Workflows and Argo Events for triggered pipelines!
@justmeandopensource
@justmeandopensource 4 года назад
HI Yovan, thanks for watching. I will surely look into Argo stuff.
@yovangrbovich3577
@yovangrbovich3577 4 года назад
@@justmeandopensource it's really cool! You can define steps/graphs of containers to run in sequence and stuff. Love the channel!
@justmeandopensource
@justmeandopensource 4 года назад
@@yovangrbovich3577 Thanks.
@Satishkumar-rx7oy
@Satishkumar-rx7oy 8 месяцев назад
awesome video
@justmeandopensource
@justmeandopensource 8 месяцев назад
Glad you enjoyed it
@chandup
@chandup 3 года назад
Hi Venkat, thanks for the detailed video. A quick question.... If I want to run parallel jobs for this use case, how to do it? Use case: For benchmarking purpose, let's say I have assigned a range for CPU values to do deployments , like 1cpu-100cpu. And I want to do a load test for every CPU value in the given range but I don't want to wait by running deployment one by one with new configuration of cpu value. Instead, want to run jobs parallely in batches like cpu range from 1 to 10 in one batch and cpu range from 11 to 20 in another batch and so on. How can I achieve this parallel batch jobs execution? Please help.
@MatiFix
@MatiFix 2 года назад
Great video! Thanks for sharing! Let me ask you two things, one is how you accomplish kubectl completition + constantly watch kubectl get all ? Thanks!
@nguyenhuy1332
@nguyenhuy1332 3 года назад
very thanks Sir.
@justmeandopensource
@justmeandopensource 3 года назад
Hi Nguyễn, thanks for watching.
@mageshp5998
@mageshp5998 5 лет назад
Thanks so much for your wonder video, wondering if there is any programmatic way to cleanup completed pod and job
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Magesh, thanks for watching this video. Well you could write a kubectl plugin that inspects each job/cronjob and deletes it when the status is completed. Thanks, Venkat
@jaimegutierrez2643
@jaimegutierrez2643 5 лет назад
Excellent video! I would like to know how to execute several commands (or a shell script) in order to create a Mysql backup dump I tried many things but when I execute the cronjob It seems that I can´t start a mysql session, by the way Im using OpenShift and the command to login into the Mysql POD is: oc rsh , any idea or any suggestions? thanks a lot
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Jaime, thanks for watching this video. There are lots of examples I could find online about mysqldump cron job or job in Kubernetes. I had a quick look at the below link. See if that helps. github.com/camilb/kube-mysqldump-cron You can modify the manifests as per your need. Thanks, Venkat
@ninaddesai7294
@ninaddesai7294 3 года назад
thanks for video, can someone kindly explain difference between spec.activeDeadlineSeconds and spec.startingDeadlineSeconds in cronjob
@sayedmaqsoodadhoni8590
@sayedmaqsoodadhoni8590 Год назад
Bro Many thanks for your video which is really great!!! Please help me out - how do i run any cronjob in Openshift for specific time zone
@biswajit4631
@biswajit4631 Год назад
I really enjoy the course. Can you please help me to setup a yaml job , which need to be wait until the job was not finished.
@naveenkumar-jy3tw
@naveenkumar-jy3tw 4 года назад
hi bro, please do a video on "clean-up-finished-jobs-automatically" using TTlController, using 'ttlSecondsAfterFinished' in our yaml file at spec.ttlSecondsAfterFinished. thanks
@justmeandopensource
@justmeandopensource 4 года назад
HI Naveen, thanks for watching this video. I will test that and do a video. I think I tried that and didn't find it working as expected. But anyways, will give it a try..
@sarfarazshaikh
@sarfarazshaikh 4 года назад
Great video, Can you please provide a tutorial real scenario like :- nginx pod and particular script to run on specific time. In your tutorial cronjob create a separate pod and cron run's in it. But what if i want to run the cronjob on particular pod like :- nginx pod
@justmeandopensource
@justmeandopensource 4 года назад
Hi Sarfaraz, thanks for watching this video. The way I explained in this video is the way it is supposed to work. When you create cronjob, it will create a pod and run it on the schedule you specified in the cronjob manifest. The below StackOverflow discussion might clear your doubts. stackoverflow.com/questions/41192053/cron-jobs-in-kubernetes-connect-to-existing-pod-execute-script Thanks.
@charvikaputtur990
@charvikaputtur990 Год назад
How to run a job for rolling upgrade in kubernetes cluster?
@jayeshthamke7860
@jayeshthamke7860 3 года назад
It is bit late I am watching your this video, but still it is relevant. I have a use case. Can we somehow trigger the cron job manually outside its set trigger schedule?
@justmeandopensource
@justmeandopensource 3 года назад
Hi Jayesh, thanks for watching. This is a cron job and gets run as per the schedule you defined. If you want to trigger it manually, then there is kubernetes jobs.
@jayeshthamke7860
@jayeshthamke7860 3 года назад
Thanks Venkat! Basically I m thinking of end to end and monkey test scenario and came up with some really weird use-cases. I wonder if u r aware of any opensouce tooling for running end to end tests in a cluster?
@amanjain9352
@amanjain9352 4 года назад
Hi, I have a python script with some arguments which needs to be run inside the pod/container. Can you please tell me job.yaml file syntax ?? How to execute this python script ?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Aman, thanks for watching. Could you please explain in a bit more detailed manner as to what you are trying to achieve? You could share the scripts and outputs in pastebin.com.
@shreyansshah1477
@shreyansshah1477 4 года назад
Hey were you able to figure out the syntax to schedule a python script with arguments?
@justmeandopensource
@justmeandopensource 4 года назад
@@shreyansshah1477 See if this helps. pastebin.com/r9kF2hSk
@shanmugamn789
@shanmugamn789 4 года назад
We can add volume in job section and we can able to mouth same volume in main container ? I tried to add emptdir it fails to loads . Can able to help s on this .
@justmeandopensource
@justmeandopensource 4 года назад
Hi Shanmugam, thanks for watching. Kubernetes jobs are similar to pods and you can mount volumes inside the container. Can you share more details about what you are trying to do? You can paste command outputs and your manifests in pastebin.com.
@shanmugamn789
@shanmugamn789 4 года назад
@@justmeandopensource apiVersion: batch/v1 kind: Job metadata: name: temp-job spec: template: metadata: name: Testing spec: containers: - name: testing image: busybox volumeMounts: - name: share-volume mountPath: /mnt/share command: [ "sh", "-c", "copy for m image " ] restartPolicy: Never volumes: - name: share-volume Volume name: share-volume Emptdir: {} This not working, I try access this volume in deployment section
@balasekharnelli9218
@balasekharnelli9218 4 года назад
Like your accent brah!!
@justmeandopensource
@justmeandopensource 4 года назад
Thanks for the complement Bala. Hope you found this video useful. Cheers.
@PraveenYadav-kg1es
@PraveenYadav-kg1es 4 года назад
In my case pods already running Now I want to run Cron to send email so in this case if I set the job and job will be executed , will it create new pods every time ? Or it will be executed on running pods ?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Praveen, thanks for watching. Each iteration of the job will be done in its own pod. You will have to clean up the pods if you want. Cheers.
@mohammedsuhailbasha4860
@mohammedsuhailbasha4860 4 года назад
Hi bro please make and upload videos on service discovery in kubernetes.we need your tutorial videos in this topic very much.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Mohammed, thanks for watching. i will see if I can do it. Cheers.
@vucomir
@vucomir 4 года назад
greate video, i have a question, how can you deploy multiple cronjobs ?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Vucomir, thanks for watching this video. Cronjob is a deployable resource in kubernetes like a pod. If you want to deploy multiple cronjobs, then write multiple cronjob manifest yamls and deploy them. I am not sure if I got your question right. Thanks.
@harshgoyal6822
@harshgoyal6822 4 года назад
Can we write YAML files without using colon. Like "apiVersion batch/v1" instead of "apiVersion:batch/v1"?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Harsh, thanks for watching. You can't. blog.stackpath.com/yaml/
@abdelrahmanmohamed9870
@abdelrahmanmohamed9870 5 лет назад
Hi, Thanks for your training. I'm trying to install a cluster using vagrant up and I have an issue when trying to Deploy flannel network. Could you check it with me please.. kmaster: [TASK 3] Deploy flannel network kmaster: Unable to connect to the server: net/http: TLS handshake timeout kmaster: [TASK 4] Generate and save cluster join command to /joincluster.sh kmaster: timed out waiting for the condition The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Abdel, thanks for watching this video. I will do a vagrant up on my workstation and see if anything has changed. Will updated you shortly. Thanks.
@justmeandopensource
@justmeandopensource 5 лет назад
HI Abdel, I just tried it on my machine and it worked perfectly fine. My guess is that it didn't fail on the "[TASK 3] Deploy flannel network" but it should have failed before that during Kubernetes initialization. The cluster failed to initialize and hence deploying flannel network failed. To troubleshoot this issue, edit vagrant-provisioning/bootstrap_kmaster.sh script and remove output redirection on Line 5 "kubeadm init command" On that line just remove ">> /root/kubeinit.log 2>/dev/null". Delete all the VMs and run vagrant up again. You should now be able to see exactly why its failing. Thanks, Venkat
@rajasekaranradhakrishnan2716
@rajasekaranradhakrishnan2716 5 лет назад
Thanks for this session, can you explain "startingDeadlineSeconds" this too
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Raja, Thanks for watching this video. I am gonna ask you to take a look at below official documentation instead of trying to explain myself. kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/ See if that makes sense. Thanks
@santoshagoudapatil8611
@santoshagoudapatil8611 4 года назад
Can you please help share MySQL dump backup yaml using cronjob..
@santoshagoudapatil8611
@santoshagoudapatil8611 4 года назад
I have OpenShift MySQL pod running and I want to schedule cronjob to take backup every weekend once
@9939364566
@9939364566 4 года назад
Hi, video was very well explained. thanks for that. I just have 2 questions, first, will the pod that is scheduled to get terminated in cronjob will get terminated if pod is in Running/CrashLoopBackOff status and the next scheduled pod to spin up? and second, how to design "schedule" to spin up a pod immediately as we deploy cronjob.yaml and then 2 hours thereforth?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Chinmay, thanks for watching. I have done a follow up video to this one explaining how to get rid of pods after completion. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g0dmgd27DRg.html Otherwise even when the job is complete the pod will remain in completed state. This applies to pods in crashloop state as well. For you second question, if you specify the cron schedule to run every 2 hours, it should start the first run immediately or in few minutes.
@TheFearali
@TheFearali 2 года назад
Hello Dear, Thanks for your videos! actually u can explain kubernetes like no body else! Anyway I have a question for u. Can we run a job inside specific pod? and how?
@justmeandopensource
@justmeandopensource 2 года назад
Hi Majid, thanks for watching. When you create Kubernetes job, it will create a pod (and container within) to run that job and the pod terminates. You can't run a job inside a specific pod. Each container/pod has specific purpose. If you want to alter something inside a running pod/container or get some data off a particular pod/container, then you have to make sure to expose the data from within the container (usually using a Kubernetes service) which can then be accessed by the pod your kubernetes job runs on. Cheers.
@TheFearali
@TheFearali 2 года назад
@@justmeandopensource Thanks a lot for ur fast reply :) Where I can find a video or material for using a Kubernetes service to run a job?
@VijayYadav-rc2is
@VijayYadav-rc2is 4 года назад
Why we need a jobs? if we can run the pods simply by running the kubectl command and using the replicaset.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Vijay, jobs serves specific purpose. Yes you can simply run kubectl command to run a pod. Please explain me how you would achieve the below requirement. This is just for the purpose of understading why jobs/cronjobs are helpful. There is a mysql server running somewhere and I want to do a mysqldump every Wednesday at 10PM. And if something goes wrong with the mysqldump process, I need the ability to look through the logs to find out what happened. Let me know how you would do this using simple kubectl command. Cheers.
@VijayYadav-rc2is
@VijayYadav-rc2is 4 года назад
@@justmeandopensource Thanks for replying. 1) We can create script and run manually. 2) I got the point,that it can be achived by running cronjob at particular time.
@justmeandopensource
@justmeandopensource 4 года назад
@@VijayYadav-rc2is Yeah. Just for automating your manual tasks. You can create a script and run manually. But where would you place the script and how would you trigger the script. Would you place the script on a different machine and execute it via cron? Then what happens if that machine is down? So for things like these, jobs/cronjobs are designed to be run withing the cluster so you don't need any external resources. Cheers.
@brijeshgpt7
@brijeshgpt7 4 года назад
What is restartPolicy= Never says. I also see that the RESTART count is not increasing.. Is that mean that on falling that pod "Do not restart pod"?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Brijesh, thanks for watching. RestartPolicy option is used to control what to do when a container fails (not the pod). Please refer to the documentation for more details. kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#handling-pod-and-container-failures
@brijeshgpt7
@brijeshgpt7 4 года назад
@@justmeandopensource: Got it and thanks for correcting me. Well I'm planning to give CKAD any useful tips ?
@justmeandopensource
@justmeandopensource 4 года назад
@@brijeshgpt7 Hi, all the best for your ckad prepartion. I haven't done any of the kubernetes certification. Just practice and be more confident by practising more.
@SenthilRameshJV
@SenthilRameshJV 4 года назад
Im following your Kubernetes tutorial and just to ensure i get all in, i want to do it in Linux too (right now doing in windows). May i know what flavor of Linux are you using?
@justmeandopensource
@justmeandopensource 4 года назад
Hi Senthil, thanks for watching. I used Manjaro Linux with I3 tiling window manager. If you want to follow my videos on Linux, you can do so in any Linux distribution. It really doesn't matter what distro you use.
@SenthilRameshJV
@SenthilRameshJV 4 года назад
Just me and Opensource thank you. I agree but I liked your Linux distro. From ur wallpaper I figured and already installed Manjaro Gnome. Getting started with lxc.
@SenthilRameshJV
@SenthilRameshJV 4 года назад
Also I’m using it with virtual box on windows guest in my work laptop . Planning to get a laptop so I can have Linux as host. Do you recommend xps13 2020. I see mixed reviews.
@justmeandopensource
@justmeandopensource 4 года назад
@@SenthilRameshJV Mine is a Dell XPS 13 9370 2018 model. I love it performance wise. Its a beast in that tiny case. If I were to buy another laptop now, I would definitely choose xps 13 2020 edition. The only thing I didn't like about mine is the position of the webcam which is at the bottom of the screen. In 2020 edition, it has been moved back to the top.
@justmeandopensource
@justmeandopensource 4 года назад
@@SenthilRameshJV :) I am no longer using Manjaro Gnome. I used to distro hop every now and then to find a perfect distro that I am satisfied in all respects. I am on Gentoo for the last few weeks and will probably stick with it for the rest of my life (hopefully)
@janardhanm6402
@janardhanm6402 2 года назад
Hai make a video for k8s trabuleshooting
@saoudahmedkhan2549
@saoudahmedkhan2549 4 года назад
At 11:24 parallelism is 2 Completion is 2 So I runs 2 pod parallel and these two pods completed 2 iterations.. please reply
@justmeandopensource
@justmeandopensource 4 года назад
Hi Saoud, thanks for watching. completions 2 means that the workload should be run 2 times. With just completions 2 (and no parallelism), you will have first pod launched, completes the work and then second pod launches and completes the work. Now when you also specify parallelism 2, two pods will launch and run at the same time. Hope this makes sense. Cheers.
@saoudahmedkhan2549
@saoudahmedkhan2549 4 года назад
Thanks alot thankss
@justmeandopensource
@justmeandopensource 4 года назад
@@saoudahmedkhan2549 You are welcome. Cheers.
@gajanankotpelliwar4242
@gajanankotpelliwar4242 4 года назад
Hi venkat, for kubectl v16 kworker1 & kworker2 showing as not ready by default while running the command kubectl get nodes Any idea how to downgrade v16 to v12, v13 or v15
@justmeandopensource
@justmeandopensource 4 года назад
Hi Gajanan, thanks for watching this video. I haven't tried Kubernetes version 1.16.0 yet. According to the releases page github.com/kubernetes/kubernetes/releases, the latest release is 1.15.4 and 1.16.0 is not yet a stable release. But I will try this version at some point. What method you used to provision your cluster? I can try to do that in my environment and see how it goes. Thanks.
@gajanankotpelliwar4242
@gajanankotpelliwar4242 4 года назад
Hi Venkat
@gajanankotpelliwar4242
@gajanankotpelliwar4242 4 года назад
As per your session I am provision the cluster
@justmeandopensource
@justmeandopensource 4 года назад
Okay. Thanks. I will check in my machine and let you know.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Gajanan, I spent some time this morning investigating the issue. I had lots of problems. But I believe I have sorted them all. Basically, things have changed slightly in k8s v1.16.0 that required few changes in my github repo. I have been using Flannel as the default overlay network and I see problems getting it to work with v1.16.0. So I have updated my scripts to deploy Calico as the default overlay network. All looking good and I have verified it. Please do a fresh clone of my kubernetes repository and do vagrant up. Everything should be fine by now. Let me know if it worked. Cheers.
@karthikyakateela4258
@karthikyakateela4258 Год назад
bro please provide the file to schedule a cronjob to run a script shell in kuberenetes.....
@justmeandopensource
@justmeandopensource Год назад
Hi Karthik, sorry which file are you referring to? The cronjob manifest is in my kubernetes repository under yamls directory. Github link in video description.
@abdulshaikh6807
@abdulshaikh6807 5 лет назад
What is the learning path and what is the prerequisite
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Abdul, If you decide to go with Cloud technology and that is where your interests are, then there are lots you can follow to prepare yourself. You can learn AWS, Google Cloud, Docker stuff, Kubernetes etc. If you gain confidence you can then go for certifications like AWS Solutions Architect. Kubernetes certification is also available from CNCF (Certified Kubernetes Administrator). The pre-requisites are that you have some basic knowledge about cloud and containers. Amazon provides free tier for first 12 months to try their AWS resources. Google Cloud also has similar free tier for your to learn. Thanks
@ahamedrizwan8719
@ahamedrizwan8719 5 лет назад
Excellent Video, How i can configure cron job to execute commands in running pod
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Ahamed, thanks for watching this video. I don't know why would do that. If you give me a specific use case, that will be helpful. Thanks.
@ahamedrizwan8719
@ahamedrizwan8719 5 лет назад
@@justmeandopensource if i want to scale the pod at specific time and down on specific time
@justmeandopensource
@justmeandopensource 5 лет назад
@@ahamedrizwan8719 Instead of scaling the pods at specific time, if you scale the pods based on certains utlization metrics, it will be more practical and better utilization. If you are interested you can watch my below video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uxuyPru3_Lc.html Or if you want to go with your approach, you can set up a cron job on the host machine where you are running kubectl commands from, to autoscale. Or the below link might be helpful as well. Thanks, Venkat
@ahamedrizwan8719
@ahamedrizwan8719 5 лет назад
@@justmeandopensource link please
@justmeandopensource
@justmeandopensource 5 лет назад
@@ahamedrizwan8719 Sorry. Here it is github.com/kubernetes/kubernetes/issues/50569
@chaitalichakraborty2786
@chaitalichakraborty2786 3 года назад
Can we create any job for a specific pod?
@justmeandopensource
@justmeandopensource 3 года назад
Hi Chaitali, thanks for watching. I don't get your question though.
@justmeandopensource
@justmeandopensource 3 года назад
Hi Chaitali, thanks for watching. I don't get your question though.
@chaitalichakraborty2786
@chaitalichakraborty2786 3 года назад
I mean how to run a job inside a pod? Or can job run inside a pod or only at cluster level?
@justmeandopensource
@justmeandopensource 3 года назад
@@chaitalichakraborty2786 Job is nothing but a process that runs in a container. SO you first need to containerize your task (what you want to achieve by running the job) and then push it to an image registry.
@devopsengineers8254
@devopsengineers8254 4 года назад
i am getting this issue NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. Gem::Specification.default_specifications_dir called from /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/bundler.rb:428. NOTE: Gem::Specification.default_specifications_dir is deprecated; use Gem.default_specifications_dir instead. It will be removed on or after 2020-02-01. Gem::Specification.default_specifications_dir called from /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/bundler.rb:428. /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/plugins/kernel_v2/config/vm.rb:354: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/plugins/kernel_v2/config/vm_provisioner.rb:92: warning: The called method `add_config' is defined here /usr/share/rubygems-integration/all/gems/vagrant-2.2.6/lib/vagrant/errors.rb:103: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/i18n-1.8.2/lib/i18n.rb:195: warning: The called method `t' is defined here Vagrant failed to initialize at a very early stage: Failed to locate the powershell executable on the available PATH. Please ensure powershell is installed and available on the local PATH, then run the command again.
@vatansoni6439
@vatansoni6439 5 лет назад
Cron job 18:00
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Vatan, thanks for watching this video. Whats at 18:00, I didn't get it sorry.
@vatansoni6439
@vatansoni6439 5 лет назад
@@justmeandopensource Just a tag for me to get there directly. Thanks. Great tutorial :)
@justmeandopensource
@justmeandopensource 5 лет назад
@@vatansoni6439 You are welcome. Cheers.
@realthought2262
@realthought2262 4 года назад
hey, do you have a slack channel ?
@justmeandopensource
@justmeandopensource 4 года назад
Hi, I do and the invitation link will be in my channel's banner.
@realthought2262
@realthought2262 4 года назад
@@justmeandopensource got it , thx !!
@justmeandopensource
@justmeandopensource 4 года назад
@@realthought2262 Welcome
@umarfarrooq8126
@umarfarrooq8126 4 года назад
Hello!!! My Question is irrelevant to this Video Topic, But I'm hopping You may help me in this, Laravel FFMPEG Error Encoding Failed using Laravel Queue in Docker I am running my laravel application on docker container. I am using ffmpeg build johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz i can confirm that ffmpeg and ffprobe are installed. when I submit video to my application it is passed to a queue which is responsible to converts two versions one is 720,1280 and other is 640, 360 what is happening at the moment, I am successfully able to convert uploaded files into 720,1280 but when it comes to converting 640,360 it throws Encoding Failed error. I have switched conversion pattern like first I m trying to convert 640,360 then trying to convert 720,1280. what have I noticed is that first conversion happens successfully, the exception is always thrown at second conversion here is my code sample $format ->setKiloBitrate($bit_rate) ->setAudioChannels(2)->setAudioKiloBitrate(128); $seven_twenty = new Dimension(1280, 720); $video->filters()->resize($seven_twenty)->synchronize(); $video->save($format, $this -> Video['destination'].'-720-1281.mp4'); $format ->setKiloBitrate($bit_rate) -> setAudioChannels(2) -> setAudioKiloBitrate(128); $three_sixty = new Dimension(640, 360); $video->filters()->resize($three_sixty)->synchronize(); $video->save($format, $this -> Video['destination'].'-360-640.mp4'); can You please help me on this.
@justmeandopensource
@justmeandopensource 4 года назад
Hi Teej, thanks for watching. I am afraid I don't have any experience on this to answer your question.
@akshaybihari4025
@akshaybihari4025 Год назад
Who's watching this masterpiece in 2023?
@justmeandopensource
@justmeandopensource Год назад
Hi Akshay, Thanks for watching.
@AmitKumar-zu5uc
@AmitKumar-zu5uc 5 лет назад
Nice Video. One gotcha at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uJKE0d6Y_yg.html : When you have successfulJobsHistoryLimit and failedJobsHistoryLimit to zero then deployment gets delete automatically and Kubernetes lost the connection between cronjob and pod which were done by jobs that's why you have to delete pods manually otherwise while deleting the job it will delete pod automatically. Two questions apart from this: 1. You are using busybox in this video, why not alpine? 2. How autocomplete works in your laptop? Thanks for your time.
@justmeandopensource
@justmeandopensource 5 лет назад
Hi Amit, thanks for watching this video. I got used to typing busybox. This is just to show a quick example and didn't bother to use alpine. And for kubernetes auto-completion, I used kubectl plugin for oh-my-zsh on top of my zsh shell. If you are using bash, you can follow the steps in the below link. kubernetes.io/docs/tasks/tools/install-kubectl/ Thanks, Venkat