Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14292

Install Wildfly on IBM Cloud

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None
    • Undefined
    • ---
    • ---

      Installing Wildfly on IBM Cloud

       

      This document will describe how to install Wildfly on IBM Cloud using Kubernetes Service.

       

      Contents

      1. Introduction
      2. Provision Kubernetes Cluster
      3. Deploy IBM Cloud Block-Storage Plugin
      4. Deploy Wildfly
      5. Verifying the Wildfly Installation

       Introduction

      To complete this tutorial, you should have an IBM Cloud account, if you do not have one, please register/signup here.

      For installing Wildfly, we have used the Kubernetes cluster, and used the IBM Cloud Block-Storage plugin for our persistent volume. Upon the completion of this tutorial, you would have the Wildfly up and running on the Kubernetes cluster.

      1. Provision the Kubernetes cluster, if you have already setup one, skip to step 2.
      2. Deploy the IBM Cloud Block-Storage Plugin to the created cluster, if you have already done this, skip to step 3.
      3. Deploy the Wildfly.

      Provision Kubernetes Cluster

      • Click on the Catalog button on top center. Open Catalog
      • In search catalog box, search for Kubernetes Service and click on it.
      • You are now at Create Kubernetes Cluster page, there you have the two plans to create the Kubernetes cluster, either using free plan or standard plan.

       

      Option1- Using Free Plan:

      • Select Pricing Plan as “Free”.
      • Click on Create.
      • Wait a few minutes, and then your Cloud would be ready.

       

      Note: Please be careful when choosing free cluster, as your pods could be stuck at pending state due to insufficient compute and memory resources, if you face such kind of issue please increase your resource by creating them choosing the standard plan.

       

      Option2- Using Standard Plan:

      • Select Pricing Plan as “Standard” 
      • Select your Kubernetes Version as latest available or desired one by application. In our example we have set it to be ‘1.18.14’.
      • Select Infrastructure as “Classic
      • Leave Resource Group to “Default
      • Select Geography as “Asia” or your desired one.
      • Select Availability as “Single Zone”.

      This option allows you to create the resources in either single or multi availability zones. Multi availability zone provides you the option to create the resources in more than one availability zones so in case of catastrophe it could sustain the disaster and continues to work.

      • Select Worker Zone as Chennai 01.
      •  In Worker Pool, input your desired number of nodes as “2
      • Leave the Encrypt Local Disk option to “On
      • Select Master Service Endpoint to “Both private and public endpoints
      • Give your cluster-name as “Wildfly-Cluster
      • Provide tags to your cluster and click on Create.
      • Wait a few minutes, and then your Cloud would be ready.

      Deploy IBM Cloud Block-Storage Plugin

      • Click on the Catalog button on top center.
      • In search catalog box, search for IBM Cloud Block Storage Plug-in and click on it
      • Select your cluster as "Wildfly-Cluster"
      • Provide Target Namespace as “wildfly-storage”, leave name and resource group to default
      • Click on Install

       

      Deploy Wildfly

      • Again go to the Catalog and search for Wildfly.
      • Provide the details as below.
      • Target: IBM Kubernetes Service
      • Method: Helm chart
      • Kubernetes cluster: Wildfly-Cluster(jp-tok)
      • Target namespace: wildfly
      • Workspace: wildfly-01-13-2021
      • Resource group: Default
      • Click on Parameters with Default Values, you can set the deployment values or use the default ones, we have used the default ones in this example.
      • Click on Install.

      Verifying the Wildfly Installation

      • Go to the Resources List in the Left Navigation Menu and click on ** Kubernetes and then Clusters.    
      • Click on your created Wildfly-Cluster.
      • A screen would come up for your created cluster, click on Actions, and then Web Terminal
      • A warning will appear asking you to install the Web Terminal, click on Install
      • When the terminal is installed, click on the action button again and click on web terminal and type the following command in below command window. It will show you the workspaces of your cluster, you can see Wildfly active.
      $ kubectl get ns

      $ kubectl get pod –n Namespace –o wide 

      $ kubectl get service –n Namespace 

      Note the IP address and put it into your browser and you would see the Wildfly console would open.

                                     

      The installation is done. Enjoy!

        1. Wildfly2.png
          Wildfly2.png
          51 kB
        2. WildflyVerify1.png
          WildflyVerify1.png
          17 kB
        3. WildflyVerify2.png
          WildflyVerify2.png
          37 kB
        4. WildflyVerify3.png
          WildflyVerify3.png
          8 kB
        5. WildflyVerify4.png
          WildflyVerify4.png
          7 kB
        6. WildflyVerify5.png
          WildflyVerify5.png
          8 kB
        7. WildflyVerify6.png
          WildflyVerify6.png
          137 kB
        8. Kubernetes1.png
          Kubernetes1.png
          23 kB
        9. Kubernetes2.png
          Kubernetes2.png
          105 kB
        10. Kubernetes3.png
          Kubernetes3.png
          34 kB
        11. Kubernetes4.png
          Kubernetes4.png
          23 kB
        12. Kubernetes5.png
          Kubernetes5.png
          21 kB
        13. Kubernetes6.png
          Kubernetes6.png
          33 kB
        14. Kubernetes7.png
          Kubernetes7.png
          29 kB
        15. Storage1.png
          Storage1.png
          8 kB
        16. Storage2.png
          Storage2.png
          39 kB
        17. Wildfly1.png
          Wildfly1.png
          6 kB

              bstansbe@redhat.com Brian Stansberry
              arifnafees Muhammad Arif (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: