Conclusion

Does it feel like pulling teeth to attract new customers? Even worse, are customers not paying attention to what you have to say? The shame is you have a great product. Once you get your product into…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Deploy your Kubernetes applications easily with Cellery

So you have an application ready to be deployed into a Kubernetes cluster and you want to do it in an easy way, that’s Great! In this article, we are going to deploy a Todo application using standard Kubernetes YAML’s and compare it by deploying the same application using Cellery.

In our very simple Todo application, we have a single todo service which provides add/update/list for todos and a MySQL database.

Create a SQL initialization ConfigMap which is used for populate SQL schema.

Create the MySQL deployment

Create the service for the MySQL deployment

Now our MySQL deployment should run properly. Run kubectl get pods and verify whether the MySQL pod is running.

Create a Secret containing MySQL credentials for our todo service

Create Todo service deployment and service by running the following two commands

We need an ingress in order to expose our application and test it. Create a ingress by running the following command

Run kubectl get pods verify our two pods are in running state. Once all in running state, run kubectl get ing todo-app-ingress to get our IP address and hostname to invoke the service. The command should output something similar to following,

Invoke our service by running the following command, (make sure to replace the IP address)

You should get an output similar to this

For our sample, we can use a single cell to deploy our application. Run the following command to deploy our todo service as a cell and expose it via the ingress.

Once you verify the pods are running, get the IP and hostname by running kubectl get ing todo-app-ingress invoke the service by running following command,

You should see the same response output as above.

Add a comment

Related posts:

How Cisco Webex Transforms Your Distance Learning Schedule

Did you know the online education market will be worth $350 billion by 2025? A reassuring stat but it doesn’t help with kick starting your distance learning schedule. This information shows us that…

4 construction technology trends shaping 2019

The construction industry has been notoriously slow to jump into technology in the past, but is now increasingly promoting digital adoption to improve the sector’s productivity. Looking ahead to 2019…

Mach mal nen Punkt.

Menschen quasseln in Messengers ohne Punkt und Komma. Wie wörtlich man das nehmen darf, zeigt der eigene Chatverlauf. Wann haben Sie das letzte Mal bewusst einen Punkt an ein Satzende gesetzt? Zeit…