Пікірлер
@bololo4988
@bololo4988 2 күн бұрын
why you not have error invalid argumen with command sudo sysctl --system
@zemarisco
@zemarisco 3 күн бұрын
love you Serge
@richardsrobin_r
@richardsrobin_r 3 күн бұрын
vagrant file for networking setting , which ip should be used for --apiserver-advertise-address =windows ip4 address ?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 күн бұрын
Hi, here is my config: Vagrant file: 3.times do |i| config.vm.define "node#{i+1}" do |node| node.vm.hostname = "node#{i+1}" node.vm.network "public_network", bridge: "Intel(R) Wireless-AC 9560 160MHz", ip: "192.168.1.5#{i+1}" end end --apiserver-advertise-address: root@node1:~# cat /etc/kubernetes/manifests/kube-apiserver.yaml | grep advertise kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint: 192.168.1.51:6443 - --advertise-address=192.168.1.51
@abdelkaderlounis9806
@abdelkaderlounis9806 12 күн бұрын
can you please tell me how i can get this address pool from my network
@LearnDevOpswithSerge
@LearnDevOpswithSerge 12 күн бұрын
Hi, 1. You have a local subnet. For example, 192.168.1.0/24. 2. Take nonbusy IP addresses. Your WiFi router gives IP addresses from the pool using the DHCP protocol. For example, 192.168.1.200-192.168.1.254. You can find busy IP addresses on your home WiFi router. And configure the static diapason of IP addresses (IP addresses not given by the DHCP server) there too.
@user-oz2of8yq7z
@user-oz2of8yq7z 15 күн бұрын
your videos are so helpfull!, thank you. just a little note aside, if you create a list of the comands or the lines, especially the ones you use in the .yaml files, that would be amazing, but overall very helpfull video man!
@suryagowda3663
@suryagowda3663 19 күн бұрын
What is kubeadm? What is the use? When we should use?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 19 күн бұрын
Hi, kubernetes.io/docs/reference/setup-tools/kubeadm/
@suryagowda3663
@suryagowda3663 19 күн бұрын
Hi , i want to learn step by step about kubernetes with syllabus. Can u share here...
@LearnDevOpswithSerge
@LearnDevOpswithSerge 19 күн бұрын
Hi, I'm going to make a video about it.
@badex3301
@badex3301 20 күн бұрын
Another banger serge! 💪🏽
@premierde
@premierde 22 күн бұрын
very nice. can you share your git repo.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 22 күн бұрын
Hi, github.com/devops-serge
@tadeubernacchi3360
@tadeubernacchi3360 23 күн бұрын
Nice video Serge - Quick question: How did you setup your own gitlab? I'm struggling here with liveness and readnissess probe errors =/
@LearnDevOpswithSerge
@LearnDevOpswithSerge 22 күн бұрын
Hi, there are several options: - Your virtualization environment (VirtualBox, KVM, VMWare Workstation) - VPS Hosting - Cloud Providers - Container (Docker, Kubernetes)
@harigopal4351
@harigopal4351 Ай бұрын
Helpful Thanks
@satishbarnana2267
@satishbarnana2267 Ай бұрын
how can we configure 3 vms in single machine and can we run master and worker nodes on same machine?
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, I use VirtualBox with Vagrant to create VMs. In Linux, you can use KVM or VirtualBox too. Yes, you can use master for your workloads. To do it, remove taints on the master/control plane node.
@sandeepthapa9478
@sandeepthapa9478 Ай бұрын
containerd config default | sudo tee /etc/containerd/config.toml >/dev/null 2>&1 $ sudo sed -i 's/SystemdCgroup \= false/SystemdCgroup \= true/g' /etc/containerd/config.toml from where did u get this command in k8s documentation
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, 1. SystemdCgroup = true # The documentaion about it kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd-systemd 2. The issue with sandbox image: github.com/cri-o/cri-o/issues/6985 discuss.kubernetes.io/t/can-not-install-kubernetes-cluster-with-kubeadm/24079 ---- Note that the version of the sandbox image in each Containerd version can be changed so check it. For example, in my video, the version is 3.6 and now it is 3.8. The message while installing Kubernetes: W0725 06:32:35.829024 14158 checks.go:844] detected that the sandbox image "registry.k8s.io/pause:3.8" of the container runtime is inconsistent with that used by kubeadm.It is recommended to use "registry.k8s.io/pause:3.9" as the CRI sandbox image.
@bharathram1995
@bharathram1995 Ай бұрын
I am gettting this error message when I try to initialise kubeadm The HTTP call equal to 'curl -sSL localhost:10248/healthz' failed with error: Get "localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.. help me to resolve this.
@sumanth6114
@sumanth6114 Ай бұрын
dude at 3:49 its big command where can i get that?
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, containerd config default | sed 's/SystemdCgroup = false/SystemdCgroup = true/' | sed 's/sandbox_image = "registry.k8s.io\/pause:3.6"/sandbox_image = "registry.k8s.io\/pause:3.9"/' | sudo tee /etc/containerd/config.toml
@mohasinsultan
@mohasinsultan Ай бұрын
Can you also make a video with ingres Traefik
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, I will consider.
@mohasinsultan
@mohasinsultan Ай бұрын
Thanks for making this video ❤
@hamzaerrahma9858
@hamzaerrahma9858 Ай бұрын
Thank you for this video, I initialized my cluster and everything was working perfectly. However, after I rebooted my machines, the kubectl get nodes command stopped working. When I run sudo kubectl get nodes, I get the following error message:The connection to the server 192.168.56.101:6443 was refused - did you specify the right host or port?
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, have you disabled swap? stackoverflow.com/questions/56737867/the-connection-to-the-server-x-x-x-6443-was-refused-did-you-specify-the-right Try to execute these commands on the master node: 1. sudo -i 2. swapoff -a
@hamzaerrahma9858
@hamzaerrahma9858 Ай бұрын
@@LearnDevOpswithSerge Thanks You Very Much
@shang-mokai5428
@shang-mokai5428 Ай бұрын
Thanks You Very Much !!! working well for me
@ttsouzzaaa
@ttsouzzaaa Ай бұрын
thank you very much! great content!
@sarvamsahitya
@sarvamsahitya Ай бұрын
Thanks. Did try to install the dashboard. Please share if you have done it already
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, here it is: kzbin.info/www/bejne/iYbOkIGjaqechtk
@magicalvibez2037
@magicalvibez2037 Ай бұрын
how did u created the master and worker nodes?
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
Hi, I run virtual machines using VirtualBox and Vagrant.
@youtea7324
@youtea7324 2 ай бұрын
at 03:47 you prepared a command, from where do i get it.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
Hi, containerd config default | sed 's/SystemdCgroup = false/SystemdCgroup = true/' | sed 's/sandbox_image = "registry.k8s.io\/pause:3.6"/sandbox_image = "registry.k8s.io\/pause:3.9"/' | sudo tee /etc/containerd/config.toml
@christopherobinna2140
@christopherobinna2140 Ай бұрын
@@LearnDevOpswithSerge how did you generate this command. any documentation for it. up till this stage you have explained everything in detail but just copied and pasted this out of nowhere. the tutorial is very great!
@LearnDevOpswithSerge
@LearnDevOpswithSerge Ай бұрын
​ @christopherobinna2140 Hi, 1. SystemdCgroup = true # The documentaion about it kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd-systemd 2. The issue with sandbox image: github.com/cri-o/cri-o/issues/6985 discuss.kubernetes.io/t/can-not-install-kubernetes-cluster-with-kubeadm/24079 ---- Note that the version of the sandbox image in each Containerd version can be changed so check it. For example, in my video, the version is 3.6 and now it is 3.8. The message while installing Kubernetes: W0725 06:32:35.829024 14158 checks.go:844] detected that the sandbox image "registry.k8s.io/pause:3.8" of the container runtime is inconsistent with that used by kubeadm.It is recommended to use "registry.k8s.io/pause:3.9" as the CRI sandbox image.
@sathvikbandaru3985
@sathvikbandaru3985 2 ай бұрын
Thanks you
@sathvikbandaru3985
@sathvikbandaru3985 Ай бұрын
for me Culster set up is ready because of you but little issue my pods are not running properly when im using flannel but when i using calico now my pods are running
@Morkoffka_katya
@Morkoffka_katya 2 ай бұрын
👍🏻
@badex3301
@badex3301 2 ай бұрын
Keep them coming serge! Love the content
@khoale8688
@khoale8688 2 ай бұрын
you're the best !
@Rayhand117
@Rayhand117 2 ай бұрын
Cool! i learn a lot!
@laurentsun4707
@laurentsun4707 2 ай бұрын
Hello, for the command at 5:35 how to you find the --apiserver-advertise-address
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
Hi, it is an IP of your master node. You can find out it by the command: "ip address show" or shortly "ip a". ``` vagrant@master:~$ ip address show | grep 192.168.1.50 inet 192.168.1.50/24 brd 192.168.1.255 scope global enp0s8 ```
@laurentsun4707
@laurentsun4707 2 ай бұрын
@@LearnDevOpswithSerge Thank you! Do you have a video to show how to setup the kubernetes dashboard?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
I haven't done it yet. Thanks for the idea!
@user-oz2of8yq7z
@user-oz2of8yq7z Ай бұрын
@@LearnDevOpswithSerge also, the --pod-network-cidr, where did you find that?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 29 күн бұрын
@@user-oz2of8yq7z Hi, 2d item kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#initializing-your-control-plane-node
@PratapKumar-sm9if
@PratapKumar-sm9if 2 ай бұрын
Hi Serge, I have followed your tutorial, However, Kube Proxy status shows a Crashloop error Any suggestion Please ? Thanks
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
Hi, I guess you mean Flannel when talking about kube proxy. 1. Check logs of the crashed container: "kubectl -n <namespace> logs -p <pod-name>" 2. Check events of the pod in the 'CrashLoopBackOff' state: "kubectl -n <namespace> describe pod <pod-name>" 3. Analyze the information from the 1st and 2d list items.
@timetraveller2045
@timetraveller2045 2 ай бұрын
Many Thanks! Very usefull video!
@IndianSumaira
@IndianSumaira Ай бұрын
did it worked for you ? I am facing some trouble when i try to init cluster, says its: st:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused. Unfortunately, an error has occurred: timed out waiting for the condition This error is likely caused by: - The kubelet is not running - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled) If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands: - 'systemctl status kubelet' - 'journalctl -xeu kubelet' Additionally, a control plane component may have crashed or exited when started by the container runtime. To troubleshoot, list all containers using your preferred container runtimes CLI. Here is one example how you may list all running Kubernetes containers by using crictl: - 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock ps -a | grep kube | grep -v pause' Once you have found the failing container, you can inspect its logs with: - 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock logs CONTAINERID' error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster To see the stack trace of this error execute with --v=5 or higher
@vishuhanda1837
@vishuhanda1837 2 ай бұрын
Hi Its a request Can you please make a explainative video on installing Kubeadm with any CNI . I am facing issues and unable to do so as I am quite new to it Thanks
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
Hi, I've already done it. Here is the link: kzbin.info/www/bejne/rXq9kqCwqZyAoa8si=FtIFKyaZZ_Hsh91V
@kossei8096
@kossei8096 2 ай бұрын
Hi serge, i have gitlab self hosted like you and i want to deploy gitlab runner on kubernetes, but i have an error in the gitlab runner "failed to verify the runner" . did you do any additional configuration on gitlab self hosted ? Thanks.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 2 ай бұрын
Hi, I only did the steps that I showed in the video. Nothing else. First of all, look at your GitLab runner log. Maybe, there is some additional information in it. Try to recheck your config, values, and network connectivity between the Kubernetes cluster and GitLab Server.
@kossei8096
@kossei8096 2 ай бұрын
Yes, I think the problem is with network connectivity in the Kubernetes cluster that I deployed via oracle cloud. I tried to curl and ping my self hosted gitlab and the results didn't work but for nslookup it worked. I'm still trying to find out why the pods can't access the internet. wish me luck
@philipchang7820
@philipchang7820 3 ай бұрын
Hi, i stuck at the step of kubeadm init ( 5:23 ), error report It seems like the kubelet isn't running or healthy., The HTTP call equal to 'curl -sSL localhost:10248/healthz' failed with error: do you know how to solve ? it costs me several hours to handle this problem... it it possible the ip problem ? i set as the same as you, but my ip start with 172.26.xxx.xxx
@badex3301
@badex3301 3 ай бұрын
Awesome Vid, Serge. May I suggest creating a single page pdf file with all these commands then have people subscribe before downloading :)
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
Hi, Thank you. Your idea is very good!)
@osamaabou-el-gibeen9704
@osamaabou-el-gibeen9704 3 ай бұрын
man that cgroup driver saved my week. thanks a million
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
Glad to hear it. You are welcome!
@ashanp1234
@ashanp1234 3 ай бұрын
Thank you very much for this video. Can you share the manifest file you created in 9:09 ?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
Hi, here it is: apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: nginx spec: type: ClusterIP ports: - targetPort: 80 port: 80 selector: app: nginx
@knvssandeepbolisetti5008
@knvssandeepbolisetti5008 3 ай бұрын
Thank You Very Much.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
You are welcome!
@user-wi6nl8zl3b
@user-wi6nl8zl3b 3 ай бұрын
Hi, what will be the command at 3:55 if i am using docker instead of containerd
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
Hi, Kubernetes has not supported Docker since version 1.24. Here is more information about it: kubernetes.io/blog/2022/02/17/dockershim-faq/
@ramankhanna9526
@ramankhanna9526 3 ай бұрын
thankyou
@LearnDevOpswithSerge
@LearnDevOpswithSerge 3 ай бұрын
You are welcome!
@yyassaman74
@yyassaman74 4 ай бұрын
Hi Serge, thanks for sharing your valuable knowledge with us. I have a question. Without helm I get these error. "ERROR: Registering runner... failed runner=glpat-SE status=couldn't execute POST against xxx.xx.xx.xx/api/v4/runners: Post "xxx.xx.xx.83/api/v4/runners": tls: failed to verify certificate: x509: cannot validate certificate for xxx.xx.xx because it doesn't contain any IP SANs PANIC: Failed to register the runner. The documentation hints doesnt solve the issue. Any advice would be appreciated.
@badex3301
@badex3301 4 ай бұрын
Thanks for the informative vid. Would be nice to have a google doc stating the command at 3:55
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 ай бұрын
Hi, containerd config default | sed 's/SystemdCgroup = false/SystemdCgroup = true/' | sed 's/sandbox_image = "registry.k8s.io\/pause:3.6"/sandbox_image = "registry.k8s.io\/pause:3.9"/' | sudo tee /etc/containerd/config.toml
@badex3301
@badex3301 4 ай бұрын
@@LearnDevOpswithSerge thank you! Subscribed
@nagyjoco
@nagyjoco 4 ай бұрын
Hi Serge, it's a grat videe. What to do if my gitlab-runner behind a corporate proxy? i've treid to set up proixy ip int the helm-values.yaml, without success
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 ай бұрын
Hi, thanks. I've never used runner behind the proxy. I'll try to help you. 1. Do you have connectivity from your corporate network with Gitlab server where you are going to register the runner? Try to check it from another pod or your computer. 2. What version of Gitlab Runner do you use? 3. Can you send me - configuration of the Gitlab Runner or values of your Helm chart - and logs of the gitlab runner? My email is [email protected]
@amolbansal7336
@amolbansal7336 4 ай бұрын
Hi serge, I am using gitlab runner through kubernetes executor. The aws eks version is 1.28 But when i am doing docker build its giving docker-daemon not running error. It previously used to work in version 1.23 but now its creating issue. Can you shed some light on it please ?? Thank you !
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 ай бұрын
Hi, I suppose the reason of your issue that in k8s version 1.24 the dockershim was removed (kubernetes.io/blog/2020/12/02/dockershim-faq/). Try buildah or kaniko to build images. These solutions work without docker daemon.
@chainwild5272
@chainwild5272 4 ай бұрын
thanks serge!
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 ай бұрын
You are welcome!
@LearnDevOpswithSerge
@LearnDevOpswithSerge 6 ай бұрын
Hello, I moved the files from gitlab.devops-serge.com/serge/files-helm-chart to github.com/devops-serge/files-helm-chart.
@softwareengineer5764
@softwareengineer5764 7 күн бұрын
Just mind blowing content Serge. Thanks alot. One request if you can make a tutorial on umbrella chart for a fullstack 3 tier app and then to deploy to Test and prod. It would be great. Also, make another tutorial to combine kustomize with helm together for deploy the same fullstack app. No tutorial anywhere for such knowledge. Thanks in advance.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 күн бұрын
@@softwareengineer5764 Hi, I will consider it.
@LearnDevOpswithSerge
@LearnDevOpswithSerge 6 ай бұрын
Hello, I moved the files from gitlab.devops-serge.com/serge/kubernetes-gitlab-runner to github.com/devops-serge/kubernetes-gitlab-runner.
@zeeshaniqbal15
@zeeshaniqbal15 7 ай бұрын
I am using GitLab version 15.11.4 and have several pipelines running. If I upgrade to version 16.8.1, will there be any issues with repository cloning or the runners?
@LearnDevOpswithSerge
@LearnDevOpswithSerge 7 ай бұрын
Hi. If you follow all recommendations, there will not be any issues with your GitLab server. Of course, you can do it on the test server for practise and then upgrade your production server. Don't forget to make backups and after all upgrade your GitLab runners for compitability.
@Morkoffka_katya
@Morkoffka_katya 8 ай бұрын
👍🏻
@LearnDevOpswithSerge
@LearnDevOpswithSerge 4 ай бұрын
Thanks