Creating an Application from scratch

Creating an Application manifest

Creating an application involves the following two steps:

  1. Adding an application to the Catalog
  2. Creating a deployment

Adding an application to the catalog

To add an application to the catalog:

  1. Go to Catalog and click Add Application.

application-catalog-model

  1. Enter the name for the application and click Create.

NOTE: To import your existing application, drag-drop the YAML files in the provided space and click Create.

Once you have created the application, you should see the application model as shown below.

image

Creating a deployment

A standard application in Kubernetes provides the following deployment types to create a deployment:

  • Simple deployment
  • Statefulset (ordered deployment)
  • Daemonset (deployment on every node)

These deployment models are provided to support different application requirements.

NOTE: You must have access to the image repository for the application for creating a deployment.

To create a deployment:

  1. Click Add a Workload and select a deployment type in Workload Type tab.
  2. Click Next select your image repository in Pick an Image Registry tab.
  3. Enter the details for the image repository and click Next.
  4. Enter the port details in Add Network Ports tab to assign a port to the container on which the application will listen.
  5. Click Finish.

image

To edit a deployment, click on your image repository and update the required components.

You can also edit a Kubernetes compliant YAML file by clicking on the three-dot at the top-right corner in Deployment panel and selecting Edit YAML.

image

Exposing an application as a service

In Kubernetes, you can expose your application as a service and give access to other applications or users, once your application has been deployed. The access can be given from outside the cluster or from other pods within the cluster.

To expose your application as a service:

  1. Click Expose Deployment as a Service in the Deployment panel. The Expose as a Service screen appears.

  2. Enter the name for the service and select a service type in General tab.

    • Select ClusterIP to expose the application within the cluster.
    • Select NodePort to expose the application externally.

    This will allow a service on a specific port available to all the ports that are a part of the cluster. You can access the service at http://<node-ip-address><NodePort>.

NOTE: The default value for service type is set as ClusterIP.

  1. Enter the details of the port that will be exposed in Ports tab.
  2. Click Finish.

You can see the services under Discovery & Routing tab as shown below.

image