今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Deploy your first app to the cluster
- [Instructor] So now we have our cluster created, but there's no application running on that cluster. So basically we just have a bunch of servers that are clusterized together, but there's nothing running on it. So what we could do now is deploy an application or a service to the Kubernetes cluster. And the way to do that is basically by doing a simple command. So let's go ahead and do that by doing kubectl and then create deployment. And then you want to name the application that you want to create. So let's say nodeapplication. So we're pretty much going to do the same thing that we've done for swarm by creating a new service with a node image. And we're going to add the application to the cluster by doing this command here. So then you want to specify which is the image that you're going to use. And in this case, I'm using the node image, which is already on my system. And boom, it's done. So what we just did…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。