Deploy Apache on IBM Cloud

Step 1 provision Kubernetes Cluster

  • Click the Catalog button on the top
  • Select Service from the catalog
  • Search for Kubernetes Service and click on it
  • Choose a plan standard or free, the free plan only has one worker node and no subnet, to provision a standard cluster, you will need to upgrade you account to Pay-As-You-Go
  • To upgrade to a Pay-As-You-Go account, complete the following steps:
  • 1. In the console, go to Manage > Account.
    2. Select Account settings, and click Add credit card.
    3. Enter your payment information, click Next, and submit your information
  • Choose classic or VPC, read the docs and choose the most suitable type for yourself
  • Now choose your location settings, for more information please visit Locations
  • Choose Geography (continent)
  • If at your current location selection, there is no available Virtual LAN, a new Vlan will be created for you
  • Choose a Worker node setup or use the preselected one, set Worker node amount per zone

Step 2 deploy IBM Cloud Block Storage plug-in

The Block Storage plug-in is a persistent, high-performance iSCSI storage that you can add to your apps by using Kubernetes Persistent Volumes (PVs).

  • Select Software from the catalog
  • Search for IBM Cloud Block Storage plug-in and click on it
  • Click on Enter or Select Namespace and choose the default Namespace or use a custom one (if you get error please wait 30 minutes for the cluster to finalize)
  • Click install and wait for the deployment

Step 3 deploy Apache

  • We will deploy Apache on our cluster
  • Click the Catalog button on the top
  • Select Software from the catalog
  • Search for Apache and click on it

Verify Apache installation

  • Go to Resources in your browser
  • Click on Clusters
  • Click on your Cluster
  • Click Web terminal → a terminal will open up
  • Type in the terminal, please change NAMESPACE to the namespace you choose at the deployment setup:
  • Copy the External IP, you can access the website on this IP
  • Paste it into your browser
  • Apache welcome message will be visible

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store