[ Kube 17 ] Renaming Kubernetes Nodes

  Рет қаралды 6,833

Just me and Opensource

Just me and Opensource

Күн бұрын

In this video I will show you how to rename Kubernetes nodes. This was a question asked by one of the viewer.
Github: github.com/justmeandopensourc...
Any questions/issues/feedback, please leave me a comment.
Please subscribe to my channel if you haven't already subscribed.
If you find these videos usefule, please share it with your friends.
Thanks again for watching this video
If you wish to support me:
www.paypal.com/cgi-bin/webscr...

Пікірлер: 54
@shuaibtyagi1123
@shuaibtyagi1123 4 жыл бұрын
I follow your videos. these are very very helpful. I really appreciate your efforts.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Shuaib, thanks for watching. Cheers.
@HoodBoyNO1
@HoodBoyNO1 2 жыл бұрын
nice video and representation. Thanks!
@justmeandopensource
@justmeandopensource 2 жыл бұрын
Hi Chero, thanks for watching
@jamallmahmoudi9481
@jamallmahmoudi9481 Жыл бұрын
Hi, venkat cool&perfect 🙏
@justmeandopensource
@justmeandopensource Жыл бұрын
Hi Jamal, thanks for watching.
@Siva-ur4md
@Siva-ur4md 5 жыл бұрын
Thank you so much, I loved your immediate response....... Thank you so much Venkat.....
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Anytime. Thanks.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
And Happy new year!!
@dom67911
@dom67911 5 жыл бұрын
Pretty cool. Thanks!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Jose, you are welcome. Cheers.
@romantsyupryk3009
@romantsyupryk3009 4 жыл бұрын
Thanks so much for this tutorial.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Roman, thanks for watching.
@md.zakirhossain6210
@md.zakirhossain6210 4 жыл бұрын
Nice and well explained.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Zakir, thanks for watching.
@muradheyderov
@muradheyderov 3 жыл бұрын
Thanks a lot Venkat
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Murad, thanks for watching.
@dom67911
@dom67911 5 жыл бұрын
Ideas for videos: istio, calico, how to upgrade a cluster to a later version of k8s, multicluster setup, recovering when master is lost, intro to helm, and rbac. For intermediate viewers, creating your own k8s operators using operator framework, prometheus, zipkin, multi-cluster setup, alternatives to Docker (cri-o, rkt), best practices in POD definitions (e.g. resourcing, affinity).
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hey Jose, many thanks for the list of topics. I didn't think of some of these topics and glad you brought it up. Once I complete the fundamental concepts, I will definitely cover these. Thanks again.
@abdulshaikh6807
@abdulshaikh6807 5 жыл бұрын
Nice
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Thanks Abdul
@MrDierme
@MrDierme 4 жыл бұрын
Thanks a lot! Was looking for the solution for a while. A shame that there is still no way to rename the node without deleting it.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Oleksii, thanks for watching. This is not a very common practise but I don't think there is anyother way.
@RavindraKumarSG
@RavindraKumarSG 2 жыл бұрын
Great . What if the node to renamed is a master node ?
@shashidharwl4322
@shashidharwl4322 4 жыл бұрын
Hi Venkat, I was trying to change the Node name but it's EKS, the hostnames are changed and wanted to overide the node name, right now the nodes are in ready status after changing the hostnames but to avoid issues in future is there a way i can add custom hostnames to my nodes on AWS ?? can you try this and give an update please
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Shashidhar, thanks for watching. I will give it a try when I find some time. But this was a hacky solution.
@MrShashi546
@MrShashi546 4 жыл бұрын
@@justmeandopensource can i send a private message, instead of public chat...let me know wanted to share my thoughts..
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@MrShashi546 You can join the slack workspace for this channel where there are over 100 like minded people. Here is the invitation link. I try to answer most of the questions/comments. But unfortunately don't have the luxury of time. join.slack.com/t/justmeopensource/shared_invite/enQtODg4NDcxMTg5Mjk2LTgyNWJkMzlmNzRlMDdhYzc2ZjA3NjA0N2ZkODg5NzAyMzNjMGY4OGJjZDkzNmRhNDU1ZjEzZjc1NzhiMjBlMmI
@VincentTubed
@VincentTubed 4 жыл бұрын
Thank you for a very clear and useful tutorial. Any ideas on how to rename the master node too?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching. I haven't actually tried that. I think we can follow the same process but it is going to require a downtime for your cluster definitely unless you have multi master setup.
@VincentTubed
@VincentTubed 4 жыл бұрын
@@justmeandopensource yeah I understand. But since we reset and init, doesn't everything get removed? I guess some kind of backup procedure or new master is required or to go with : kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/ . Would be cool to see a video on that :).
@justmeandopensource
@justmeandopensource 4 жыл бұрын
I will definitely take a look at that. But people prefer more automated approach when it comes to production deployment. They either go with managed kubernetes service or use tools like kops, kubespray which makes it easier to provision and manage a HA k8s cluster. I have done many videos on Kubespray. Cheers.
@seiji42
@seiji42 4 жыл бұрын
@@justmeandopensource If you could, it would be brilliant to see you make a video on a routine to back up, re-initialize (with a new name, preferably), and restore a kubernetes cluster master node.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@seiji42 Thanks for watching. I will explore those options and see if I can make a video. Cheers.
@tsingh7491
@tsingh7491 4 жыл бұрын
Hi Venkat, facing some issues when trying to add a new kworker3 to the existing cluster: ++ Using the adm join token from master, the kworker3 throws: KERNEL_VERSION: 5.3.0-40-generic DOCKER_VERSION: 19.03.5 DOCKER_GRAPH_DRIVER: overlay2 OS: Linux CGROUPS_CPU: enabled CGROUPS_CPUACCT: enabled CGROUPS_CPUSET: enabled CGROUPS_DEVICES: enabled CGROUPS_FREEZER: enabled CGROUPS_MEMORY: enabled error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist [ERROR Swap]: running with swap on is not supported. Please disable swap [ERROR SystemVerification]: failed to parse kernel config: unable to load kernel module: "configs", output: "", err: exit status 1 [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher ++ Using your bootstrap script the kworker3 command below: sshpass -p "kubeadmin" scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no kmaster.lxd:/joincluster.sh /joincluster.sh 2>/tmp/joincluster.log bash /joincluster.sh >> /tmp/joincluster.log shows [root@kworker3 ~]# bash /joincluster.sh >> /tmp/joincluster.log W0315 05:30:20.165023 1873 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set. [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at kubernetes.io/docs/setup/cri/ [WARNING FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist [WARNING Swap]: running with swap on is not supported. Please disable swap [WARNING SystemVerification]: failed to parse kernel config: unable to load kernel module: "configs", output: "", err: exit status 1 The only way to add a node successfully is by using the force ignore all error switch. Any idea what's going so I can understand better? This did not happen when provisioning the master and koworker1 nodes..:|
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching. You can ignore those errors while adding the nodes. In fact in my bootstrap script I only whitelisted few error types. But things might have changed slightly. In my bootstrap script I usually ignore all errors. Cheers.
@ankitvarshney5989
@ankitvarshney5989 4 жыл бұрын
hello, I setup the Kubernetes cluster using kops, then I want to rename the nodes. but after change the name of the node by using command kubectl edit node . after a minute, the changes were undone. I am really stuck. Please help.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
hi Ankit, I haven't tried that to be honest. Not sure if its possible. github.com/kubernetes/kops/issues/5767
@cepi24
@cepi24 4 жыл бұрын
which shell do you use? I mean it suggests shadow of command. Thx
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, thanks for watching. I use gnome terminal in I3 window manager environment. I used zsh, oh-my-zsh and zsh-autosuggestion plugin for the shadow thing. Its basically showing commands from the history in the background. If you are interested, I have done videoa on my environment setup in the below playlist kzbin.info/aero/PL34sAs7_26wOgqJAHey16337dkqahonNX Thanks.
@Aneez004
@Aneez004 3 жыл бұрын
Hi Venkat, I have a single node kubeadm cluster using ec2 instance running in one region. I am trying to take ami of the instance and deploy it in another region. But I am getting errors mostly due to nodenames and hostnames. Can you throw some light on how to tackle this situation?
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Anees, thanks for watching. You can do kubeadm reset and kubeadm init again which will pick the right node name. This basically means, you are re-initializing the cluster. It is similar to setting up a new cluster.
@Aneez004
@Aneez004 3 жыл бұрын
@@justmeandopensource Thanks for the reply. So if I use the same hostname (excluding region name), it may work without reset, right?
@alfredo6083
@alfredo6083 3 жыл бұрын
To change the name of the master node is the same operation? Thanks (delete + reset + create)
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Alfredo, thanks for watching. This is not a recommended approach atleast not for the master. kubeadm reset will reset the entire cluster. The hostname decision has to be made before initializing the cluster.
@alfredo6083
@alfredo6083 3 жыл бұрын
@@justmeandopensource Thank you very much for your help!
@justmeandopensource
@justmeandopensource 3 жыл бұрын
@@alfredo6083 you are welcome
@RK-wk6zn
@RK-wk6zn 4 жыл бұрын
can we rename a master node like this?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi, one of the viewer tried to rename the node and Kubernetes components stopped working. So I tried and helped him by doing this video. Normally you wouldn't want to rename a node. I haven't tried renaming master node. I don't think it will work. Cheers.
[ Kube 18 ] How to setup Rancher to manage your Kubernetes Cluster
33:27
Just me and Opensource
Рет қаралды 92 М.
[ Kube 19 ] Performing Rolling Updates in Kubernetes
45:37
Just me and Opensource
Рет қаралды 10 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 59 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
[ Kube 21 ] How to use Statefulsets in Kubernetes Cluster
33:25
Just me and Opensource
Рет қаралды 29 М.
Kubernetes Architecture explained | Kubernetes Tutorial 15
13:08
TechWorld with Nana
Рет қаралды 240 М.
Tech Talk: What is Public Key Infrastructure (PKI)?
9:22
IBM Technology
Рет қаралды 109 М.
[ Kube 8 ] Kubernetes Namespaces & Contexts
17:22
Just me and Opensource
Рет қаралды 24 М.
[ Kube 13 ] Using Persistent Volumes and Claims in Kubernetes Cluster
44:30
Just me and Opensource
Рет қаралды 36 М.
[ Kube 20 ] NFS Persistent Volume in Kubernetes Cluster
24:08
Just me and Opensource
Рет қаралды 31 М.
Kubernetes Explained
10:59
IBM Technology
Рет қаралды 610 М.
[ Kube 1 ] Setup Kubernetes Cluster using Kubeadm on CentOS 7
23:13
Just me and Opensource
Рет қаралды 88 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН