Home Explore Blog CI



kubernetes

4th chunk of `content/en/blog/_posts/2017-11-00-Kubernetes-Easy-Way.md`
40a07a8360b2147301f27ab625119480100f9c31cad0c7c400000001000004c2
![](https://lh4.googleusercontent.com/UNXfErkrIV-eoyAi3DS9zkRm8Awk7wMTpIQZssrscKY6hehDo63jzvkBYAdgD3fXJXgcDApi4z5dHI5S99Nk6YbvUVUQU_6hC7qRZ-9Y828k-N86f23OOSG04CXvlTWDE9XDIWhd)  

Follow the instructions on how to generate the needed information and click Save. Your cluster now appears under the Kubernetes tab. 



### Deploy Static Image to Kubernetes
Now for the fun part! Codefresh provides an easily modifiable boilerplate that takes care of the heavy lifting of configuring Kubernetes for your application.   

1. Click on the **Kubernetes** tab: this shows a list of namespaces.   

Think of namespaces as acting a bit like VLANs on a Kubernetes cluster. Each namespace can contain all the services that need to talk to each other on a Kubernetes cluster. For now, we’ll just work off the default namespace (the easy way!).   

2. Click **Add Service** and fill in the details.   

You can use the [demo application I mentioned earlier](https://github.com/containers101/demochat) that has a Node.js frontend with a MongoDB.   

 ![](https://lh4.googleusercontent.com/YzQzEdIMwWt3lGR9Q4RTELvaB_fYYo2QKqkeXhfTCDnIVX4FBx_quYNgAbo6Wc_wpk0anl7Co3RDwDWnrOyibog9V9DISOZYQqiFE9T4ErlDYuqOGWiRw3-zk4p4WcURaOVg3Dkn)

Title: Deploying a Static Image to Kubernetes with Codefresh
Summary
After adding the cluster, the Kubernetes tab displays the available namespaces. To deploy an image, click 'Add Service' and fill in the details. Namespaces act like VLANs, containing services that need to communicate. The example provided suggests using a demo application with a Node.js frontend and MongoDB.