Skip to main content

Redhat Openshift Kubernetes

Specific item for running mPower on Openshift.

Main topic - do not use Ingress-Controller (via Dependencies setup) but to use Openshift Routes

Steps

  1. Login to OpenShift:

     oc login api.ocptest.ist.sn:6443 -u kubeadmin -p …  
  2. Create a new project(namespace) for mPower:

     oc new-project mpower --display-name="Kobil mPower" --description=" Kobil mPower Eco System"  
  3. Create service account for mpower-ssms charts to use required privileged.

     oc create serviceaccount mpower-ssms-sa  
  4. Add anyuid and privileged scc's to default and mpower-ssms service accounts

     oc adm policy add-scc-to-user anyuid -z mpower-ssms-sa  

    oc adm policy add-scc-to-user privileged -z mpower-ssms-sa
  5. Create a docker registry secret(mpower-registry-pull) to pull images from Kobil Docker Hub

     oc create secret docker-registry mpower-registry-pull --docker-server=https://index.docker.io/v1/ --docker-username=... --docker-password=...  
  6. Add Kobil chart repo to download Kobil helm charts

     helm repo add kobil https://charts.kobil.com --username ... --password ...  

    helm repo update

    helm search repo kobil

    helm pull kobil/mpower
  7. Install mPower

  8. Install helm chart with the customized values.yaml file. So, edit your previously created image pull secret, disable all other entries and enter the admin user and password for the SSMS server.

  9. Consider storage-class which is used by OpenShift cluster and edit if needed.

  10. Consider namespace

  11. Set the DB username and password to allow access for the SSMS server to the DB.

  12. Disable all the other components that are not required for running only the SSMS server.

global:

createRegistryPullSecret: false

imagePullSecrets:

- registry-secret

tracing:

enabled: false

logging:

level: INFO

ingress:

enabled: false

class: nginx

domain: mpower.local

scp:

enabled: false

tis:

enabled: false

ldapc:

enabled: false

idp:

enabled: false

dashboard:

enabled: false

opencensus:

enabled: false

Uninstallation using Helm

In order to uninstall the SSMS server from your OpenShift you can run the following command.

     helm uninstall <helm release name> -n <namespace>  

helm uninstall mpower -n mpower