In this lab you will ssh into your master node and create a project named twinkie. You will then create a CakePHP application named twinkies using a pre-built template. After you create the application, you will then need to scale your CakePHP application to three pods.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure Cloud Shell
Set up Cloud Shell by clicking the Cloud Shell button in the top-right corner of the screen:
Configure Cloud Shell for Bash using Advanced Settings. Use the existing subscription, resource group, and storage account. If your storage account does not populate, make sure that the West US region is selected. To make the file share, choose Create new and specify okdcloudshell as the new file share.
- Download SSH Keys for the Lab
You will need to pull down the SSH keys to be able to connect to VMs. First, make the
.ssh
directory, if it isn’t already there, with themkdir
command.Then,
cd
into the.ssh
directory.Next, use
wget
to pull down the SSH keys using these links:https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/ssh/id_rsa
https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/ssh/id_rsa.pub
Change the permission to the files to
600
.- Create the App `twinkies`
Create a CakePHP app named "twinkies" and in the "Twinkie" project. You will need to create the project first the
oc new-project
command, and then use theoc new-app
command to create your application with the "cakephp" template.- Scale Up the Application
Scale the "twinkies" application up to three pods using the
oc scale
command.