In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Gardener is an open source project at github:
Https://github.com/gardener/gardener/
With Gardener, we can easily create a Kubernetes Cluster on GCP, AWS, Azure or Openstack in a few minutes.
Click the New button to create a Cluster. Here Infrastructure I chose gcp:
After the creation is successful, the status changes to Ready, indicating that the cluster is available.
Click the cluster name jerrycls, go to the cluster details page, and get the user name admin and password of the cluster under the Access tab.
Click on the dashboard hyperlink and a prompt for user meters and password will pop up. Enter the user name admin and the password is obtained from the Access tab above. You can go to the cluster management page. View the three namespace:default,kube-public and kube-system of this cluster from the lower left corner:
This is the work node that Gardener automatically assigned to me:
Click kubeconfig, get the config yaml file of the cluster, and copy its contents:
The operating system I use is ubuntu, which is equipped with kubectl.
Enter the directory / home/vagrant/.kube and edit the config file with vi:
Paste the content copied from Gardener into the config file.
Now using kubectl get ns, you can see the three namespace on Kubernetes cluster, which is the same as what we observed earlier in dashboard.
Using kubectl get node-o wide, you can see a worker node, which is the same as previously observed in Kubernetes dashboard.
Create a deployment using the command kubectl run nginx-- image=nginx:1.12.2, and run nginx container:
After creating the deployment, use the command line to create a service that exposes the nginx service to the outside world:
Kubectl expose deployment nginx-type=loadBalancer-port=80-target-port=80
Use kubectl get svc to view the generated service, and the IP address for external access is obtained from EXTERNAL-IP: 35.233.45.209:
Visit the ip address directly in the browser and see the default home page of nginx, indicating that the Kubernetes cluster deployed on Google Cloud Platform is working properly.
For more original Jerry articles, please follow the official account "Wang Zixi":
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.