Skip to main content

Create Application

Application Registration

note

Only accounts registered as Project Administrators can register applications System Administrators can only view and need to be registered as a project administrator to have permissions.

  1. Select the APPLICATION tab on the profile page. Click ADD button in the application list.

  1. Enter the basic information for the application on the Add Application page as shown in the image below

  2. Choose Deployment as the Workload Type.

  3. Select SPRINGBOOT as the App Framework and choose the framework version used in the application.

  4. Choose MAVEN as the build system.

  5. Additionally, enter app=hello-amdp in the Labels.

  6. Finally, click the Save button at the bottom right to register the new application

Application Database Registration

note

Only accounts registered as Project Managers can register BACKING SERVICES. The System Administrator account can only view and must be registered as the project manager to have permissions .

  1. Select the BACKING SERVICE tab on the profile page. Click the ADD button in the application list.

  2. Enter the database to be used by the application as shown in the image below.

  3. Enter a name for distinguishing the database and select the database type. In this example, MariaDB is used.

  4. Enter the JDBC address for connecting to MariaDB.

  5. Enter user authentication information and click add to complete the registration.

  1. If registration is successful and the information entered is correct, the connection status will be Connected Successfully

  1. If the registration or authentication information is incorrect, the connection status will be Connection Failed

Connecting the Application and Database

note

Only accounts registered as Project Managers can modify applications. The System Administrator account can only view and must be registered as the project manager to have permissions . Also, users with full permissions for the respective application (it's about pipeline permissions) cannot modify it.

Configure settings to connect the hello-amdp-database registered for use in the hello-amdp-blue application.

  1. In the APPLICATION tab, click the modify button among the Action buttons of the hello-amdp-blue application to go to the editing page.

  2. On the application editing page, select the Basic Settings tab.

  3. Expand the “+” button on the right of the DB Access in the Data & Message Management Settings section.

  4. Check the DB Access properties checkbox and select the hello-amdp-database to connect to the DB Instance. Click the Save button to complete.

Application Storage Registration

note

Only accounts registered as Project Managers can register STORAGE. The System Administrator account can only view and must be registered as the project manager to have permissions .

Create a Kubernetes Persistent Volume Claim (PVC) resource to connect to the registered storage (Persistent Volumes - PV).

  1. In the STORAGE tab, click the ADD button to create a new PVC.

  2. Enter hello-amdp-pvc in the Name.

  3. Select the hello-amdp-develop where the application is deployed in the Namespace.

  4. Select DYNAMIC as the Type.

    In this guide, only provisioned storage registered in the storage class resources is used, hence the Dynamic type is used.

  5. Select the StorageClass to use

    Provisioned storage must be pre-registered in the Kubernetes storage class.

  6. Select DEPLOYMENT for the Deployment Type as it's storage created for application use.

    Deployment Type provides STATEFULSET DEPLOYMENT.

  7. Access Mode is set to ReadWriteMany by default for access by multiple Pods.

  8. Enter the Storage Size. Here, 2Gi is used.

Click the Add button to save the PVC

Deploying Storage (Resource Creation)

When new storage is registered, it exists only as data in AMDP and must be deployed using the Deploy button to create Kubernetes PVC resources. If the Dynamic type is chosen, PV and PVC are created using the specified storage class.

  1. Click the Deploy button in the above image to create the PVC.

  2. If the deployment status shows as Pending, it is being created. Refresh the page to see if the deployment status changes to Bound and the creation is completed.

Connecting Application and Storage (PVC)

note

Only accounts registered as Project Managers can modify applications. The System Administrator account can only view and must be registered as the project manager to have permissions . Also, users with full permissions for the respective application (it's about pipeline permissions) cannot modify it.

Configure settings to connect the hello-amdp-pvc registered for use in the hello-amdpblue application.

  1. In the APPLICATION tab, click the modify button among the Action buttons of the hello-amdp-blue application to go to the editing page.

  2. On the application editing page, select the checkbox for Expert Mode at the bottom of the Information tab.

  3. Once the Expert Mode checkbox is selected, the Expert Settings tab is activated. Select the Expert Settings tab.

  4. In the Settings & Volume Settings area, expand the PVC by clicking the “+” button on the right.

  5. Click the ADD button on the right to select the mount path (hello-amdp-log) and PVC (hello-amdp-pvc).

  6. Click the SAVE button at the bottom right to complete the settings.