-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying an application (Eclipse Mosquitto) #4
Comments
Now to get into the nitty gritty. We are going to deploy an application in our OpenShift cluster to see how it works. The application we'll be using is called Eclipse Mosquitto, which is an open source MQTT broker. We don't need to worry too much about what it does because we won't be using it in depth but you can learn more about it here: Eclipse Mosquitto It's important to remember that everything in OpenShift is defined by a yaml manifest. So what we need to do is create a directory somewhere on our local machine where we will gather and work with the manifests we need to deploy, so go ahead and set that directory up. Before we start though, we want to make sure we know all kubernetes terminology we'll be using to deploy this application. I'll include each of the files we'll be using so you can see what they look like along with a description. Copy and paste them into your working directory as they appear. namespace More on namespaces: kubernetes namespaces Let's create a new namespace that we'll deploy mosquitto in: deployment More on deployments: kubernetes deployments deployment.yaml
secrets More on secret.yaml
configMap More on config.yaml
If you take a look in our deployment.yaml you can see that it's dependent on a couple volume mounts namely the our secret and our configMap: deployment.yaml
So we need to create the secret and configMap before we can actually create our deployment successfully so let's do it:
Now double check that the resources were indeed created: Finally we can create our deployment to actually get our Mosqutto We can see all this via the web UI as well by selecting our mosquitto project from the projects tab. If you click on workloads you'll see your deployment, and by clicking on your deployment you will see the pod. Now Mosquitto is up and running in the cluster! |
No description provided.
The text was updated successfully, but these errors were encountered: