I am not able to set static IP for my ubuntu VM I am referring Kubernetes installation

0 votes
Hey, i am not able to set static IP for my ubuntu VM.... I am referring Kubernetes installation !

Can someone help me out pls
Sep 28, 2020 in Kubernetes by anonymous
• 19,550 points
962 views

1 answer to this question.

0 votes
To set a static IP on your Ubuntu VM for Kubernetes installation, first identify your network interface using ip a. Then, edit the Netplan config file (e.g., /etc/netplan/01-netcfg.yaml) and set dhcp4: no, specifying your static IP, gateway, and DNS. For example, assign 192.168.1.100/24 as the IP, 192.168.1.1 as the gateway, and use 8.8.8.8 as DNS. Save the file and apply changes using sudo netplan apply. Make sure the YAML is properly indented and your VM network adapter is set to “Bridged” mode if needed.
answered Sep 28, 2020 by Vishwanath Deshpande

edited Oct 6, 2021 by Sarfaraz

Related Questions In Kubernetes

0 votes
1 answer

Can I configure my kubernetes job to run for a specified time?

When we create a job spec, we ...READ MORE

answered Jul 17, 2019 in Kubernetes by Sirajul
• 59,190 points
1,532 views
0 votes
1 answer

Not able to access kubernetes api from a pod in azure

Follow these steps Add --bind-address=0.0.0.0 option to the line https://github.com/kubernetes/kubernetes/blob/v1.2.0/docs/getting-started-guides/coreos/azure/cloud_config_templates/kubernetes-cluster-main-nodes-template.yml#L218  Created ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 52,340 points
1,308 views
0 votes
1 answer

Kubernetes ingress IP is set to docker0 ip

The issue here was the kubelet configuration. ...READ MORE

answered Sep 10, 2018 in Kubernetes by Kalgi
• 52,340 points
967 views
0 votes
2 answers

Not able to expose port 80 on the host, kubernetes ingress

I was facing the same error. The nginix ...READ MORE

answered Sep 11, 2018 in Kubernetes by Kalgi
• 52,340 points
2,565 views
0 votes
1 answer

Not able to access the kubernetes dashboard

Have you executed this proxy command? kubectl proxy Try ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,340 points
2,001 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
16,371 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,524 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP