Applications

You can deploy applications in a Project after you create. Project admins, members, or tenants can only deploy applications in projects.

Spectra allows you to create and deploy stateful and stateless applications. A stateful application requires persistent storage for its data. Spektra supports deploying operators and Helm charts that have cluster-scoped objects. User applications are deployed in the application-specified namespaces instead of the project name­space. Only tenant admins can launch applications with cluster-scoped objects.

Creating Catalogs

  1. Log in as a project admin, project member, or tenant admin.

  2. Select the Catalog to display the Catalogs.

  3. Select add catalogs.

    _images/add_catalog.png
  4. Newly created catalog is displayed in All Catalogs Page.

    _images/All_Catalogs.png

Creating Work Template

  1. Select the catalog and navigate to the work template page and select Add workload Template.

  2. Enter the name for the workload template.

    For example, fio.

  3. Enter the Version of the workload template.

  4. Select files for deployment.

    For example: deployment.yaml, pod.yaml

    _images/app_deployment_temp.png
  5. For helm chart deployment, enter the following:
    • Repo URL

    • Chart Name

    • Chart Version (optional)

    _images/helm_chart.png
  6. Select Add. The template is added in the Catalog.

    _images/deployment_template.png

Creating a Workload template from remote

With Spektra, you can create a workload template using application YAML files on the internet.

  1. Select the catalog and navigate to the work template page and select Add workload Template.

  2. Select Remote tab in the Add New Workload Template.

    _images/Workload_template_remote.png
  3. Enter the following, and select Add.
    • Workload Template Name

    • Repository URL

    • Version

    Spectra will download the application yaml from the internet and create the workload template from it. Using this workload template, you can install it on a cluster now.

Deploying an Application

After you add a work template. Choose the worktemplate and select install.

  1. Select the Project and Version.

  2. Select the cluster name to install the application.

    _images/app_insall_page.png
  3. Select Begin Install to install the application.

    _images/app_insalled_page.png
  4. You can also select Add Workleod Template it will direct you to the installation tab and view the details of installation.

Uninstalling an Application

To uninstall the application after deployment:

  1. Choose the catalog in which the application is located to uninstall.

  2. Hover the mouse on the work-template and select on Uninstall Application.

    _images/Uninstall_Applications.png _images/Uninstall_Applications_wizard.png

It takes few minutes for the application to uninstalled.

Viewing Application Activity

You can view the application activity in the Activity page.

  1. From Installation tab, select the applications to display application page.

  2. Select the Activity tab to check the Kubernetes events for the application.

    _images/activity_tab.png

You can see the Kubernetes events in the Activity page for faster diagnosis and resolution.

Viewing Application Logs

You can view the application logs from Installation tab.

  1. Select the installed application to display resources tab.

  2. Hover the mouse on the Pod resource and select View logs.

    _images/view-logs.png _images/pod-logs.png

Scale Deployment

You can scale up and down the running deployment app.

  1. Select the deployed installed application.

  2. On resources tab, mouseover on deployment resource.

    _images/scale-deployment.png
  3. Select the Scale Deployment, and choose the number to scale the deployment.

    These many number of deployment pods are created.

    _images/scaled-deplyment.png

Updating deployment image

You can update the image of the running deployment app.

  1. Select the installed application which is in deployment.

  2. On resources tab, move the cursor on deployment resource

    _images/scale-deployment.png
  3. Select Update Image, and select the required container if there are multiple containers.

  4. Provide the new image

    _images/update_image.png
  5. Select Update to update the container image.

Application Catalog

Spektra provides a framework to manage the applications deployed on a Kubernetes cluster. It provides a solution to browse, deploy, and manage the applications on the specified cluster. As part of the deployment process, the Platform creates all Kubernetes resources, such as StatefulSets, PersistentVolumeClaims, and so on. It deploys the application, configures the workload, and starts the application. Finally, the Platform monitors the application to ensure it is running as expected.

Note

A Cluster must be attached and cluster need to be associated with the project where the application must be installed.

Installing charts

Following charts are available to install:

  • Harbor registry

  • Argocd

  • MySQL

  • Postgres

  • MongoDb

  • Nginx Ingress controller

Note

As an example, we have used Mongodb.

To install charts:

  1. Log in as a Tenant Admin and select Charts.

  2. Select the helm charts (Mongodb) to install from the list of Catalogs.

    _images/appCatalog-1.png
  3. You can utilize the help chart values in following ways:

    1. Use the default values You can select Install, to use the default values.

    2. Download, edit and upload the chart values

      1. Select the download icon for the default values.

        _images/appCatalog-downloadicon.png
      2. Edit the downloaded .yaml file and upload it during installation of the application. To upload the file, refer step 4 for more information.

    3. Edit in helm chart You can edit the .yaml file during installation. Refer Installation Values in step 4 for more information.

  4. Select Install to install the application.

    • For more details like repo URL, Source, and Versions of the application, you can refer to the links available.
      _images/appCatalog-2.png
    • The readme is also available for the application. It helps you if there are any details required during installation.

  5. Enter the following in the Install mongodb diaglog, and select Install:

    _images/appCatalog-5.png
    • Application Name: Specifies the name of the application. The application is recognized by this name.

    • Project: Specifies the project under which the application must be installed. Select the project from the list.

    • Cluster(s): Specifies the cluster on which the application will install. Select the cluster from the list.

    • Version: Select the version of the application to be installed.

    • Installation Values: You can edit the helm chart values or upload the .yaml file.

      _images/appCatalog-4-uploadEdit.png
  6. After the installation is complete, the application is available in the Installed Applications menu option.

    _images/appCatalog-6.png

    After you select the application, you can view the related resources for that application.

    _images/appcatalog-7.png