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.
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
.sshdirectory, if it isn’t already there, with the
wgetto pull down the SSH keys using these links:
Change the permission to the files to
- 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-projectcommand, and then use the
oc new-appcommand to create your application with the "cakephp" template.
- Scale Up the Application
Scale the "twinkies" application up to three pods using the