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:
- An active RAPD account and organization.
- A GCP project with credential access key
- 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:
- Create a cluster on your GCP project.
- Build a Gateway on your k8s.
- Deploy a Wordpress application on your k8s, and start using it
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
- Line 4, type your application name
name: gateway-application
- Line 11, paster your deployment target name you created in Step 3.
target: deploy-k8s
- Save the file.
wordpress_template.yml
- Line 4, type your application name
name: wordpress-application
- Line 11, in components [wordpress], paster your deployment target name you created in Step 3.
target: deploy-k8s
- Line 21, change the WORDPRESS_DB_HOST value to below information
value: wordpress-application-wordpress-mysql
- Line 35, in components [wordpress-mysql], paster your deployment target name you created in Step 3.
target: deploy-k8s
- 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
- Follow the article How to deploy aplication on RAPD to deploy your gateway_template.yml in your environment.
- After deployment finished, go to your GCP kubernernetes gateway console, check your ip address on Ingress page.
Deploy wordpress
- Follow the article How to deploy aplication on RAPD to deploy your wordpress_template.yml in your environment.
- After deployment finished, open your browser and enter to the ip address copied in gateway.
- You can see your wordpress application is ready to use.