Skip to content

Quick start

Welcome to RAPD, in this article. We will guide you build your application and know how RAPD works for your application. You can follow this article or Video to finish your quick start.

Before start your RAPD, please be sure you have following things:

  1. An active RAPD account and organization.
  2. A GCP project with credential access key
  3. Create your environment on RAPD, or using the default environment “default-env”.

RAPD application deployment flow

We will follow the flow to build up your first application to deploy your Wordpress and Gateway, after finish this tutorial. You will have:

  1. Create a cluster on your GCP project.
  2. Build a Gateway on your k8s.
  3. Deploy a Wordpress application on your k8s, and start using it

RAPD flow

Step 1: Add cloud

Add your GCP credential to RAPD. How to add cloud on RAPD

Step 2: Create cluster

After establishing the Cloud, RAPD will automatically create a Cluster class for that Cloud. You can use this Cluster class to create a Cluster, or follow How to create cluster class on RAPD to create new cluster class before cluster. After creating your k8s cluster, please wait the process done. How to create cluster on RAPD

Step 3: Create deployment target

When your cluster created complete, create a deployment target and bind to your cluster. In this case, you can name your deployment target as “deploy-k8s” How to create deployment target on RAPD

Step 4: Download and write application manifest

Download two application manifest from the article: Application manifest template, and save file as gateway_template.yml and wordpress_template.yml. Re-write some detail for these two file.

gateway_template.yml

  1. Line 4, type your application name
name: gateway-application
  1. Line 11, paster your deployment target name you created in Step 3.
target: deploy-k8s
  1. Save the file.

wordpress_template.yml

  1. Line 4, type your application name
name: wordpress-application
  1. Line 11, in components [wordpress], paster your deployment target name you created in Step 3.
target: deploy-k8s
  1. Line 21, change the WORDPRESS_DB_HOST value to below information
value: wordpress-application-wordpress-mysql
  1. Line 35, in components [wordpress-mysql], paster your deployment target name you created in Step 3.
target: deploy-k8s
  1. Save the file.

Step 5: Deploy application

Before starting deploy your application, please be sure your cluster created in Step 2 is ready for deployment. We will deploy gateway and wordpress seperately.

Deploy gateway

  1. Follow the article How to deploy aplication on RAPD to deploy your gateway_template.yml in your environment.
  2. After deployment finished, go to your GCP kubernernetes gateway console, check your ip address on Ingress page.

Deploy wordpress

  1. Follow the article How to deploy aplication on RAPD to deploy your wordpress_template.yml in your environment.
  2. After deployment finished, open your browser and enter to the ip address copied in gateway.
  3. You can see your wordpress application is ready to use.