ibm-was-vm-quickstarter-dev
by Helm
IBM WebSphere Application Server VM Quickstarter
About this chart
WAS VM Quickstarter
IBM WebSphere Application Server for IBM Cloud Private VM Quickstarter provides the WebSphere product experience in a cloud environment by enabling self-service creation of preconfigured WebSphere environments running in virtual machines. Throughout this document, the service is also referred to as WAS VM Quickstarter.
Introduction
The WAS VM Quickstarter brings the WebSphere experience to the cloud so that you can leverage existing scripts and skills to provide a supported, cloud-managed environment for hosting WebSphere applications. WebSphere Application Server provides flexible, secure Java runtimes that easily serve up everything from single, lightweight applications and microservices to large enterprise cloud deployments.
The service management console installed by this Helm chart provides the self-service portal that is used to create and manage VM-based WAS assets. Behind the scenes, the service console applications use IBM Cloud Automation Manager to provide the orchestrations that stand up these deployments in a VMWare datacenter that you define in the Helm chart.
Setting up the WAS VM Quickstarter
See Installing WAS VM Quickstarter for a complete set of installation instructions for the service. This Helm chart is a part of the overall installation instructions.
Chart Details
The Helm chart deploys the following components:
wasaas-consoleKubernetes pod which hosts the self-service console application.wasaas-brokerKubernetes pod which hosts the self-service REST APIs.wasaas-cloudsm-frontendKubernetes pod which hosts the front end of the service management framework.wasaas-cloudsm-backendKubernetes pod which hosts the back end of the service management framework.wasaas-couchdbKubernetes pod which hosts the CouchDB NoSQL datastore that stores the service management data for the service.wasaas-dashboardKubernetes pod which hosts the administrative dashboard application.wasaas-devopsKubernetes pod which hosts devops scripts, such as must-gather and installation verification test (IVT) scripts.- Ingresses for the
wasaas-console,wasaas-dashboard, andwasaas-brokerpods.
Prerequisites
The following prerequisites apply only to deploying the Helm chart. For a detailed list of system installation prerequisites, see WAS VM Quickstarter Prerequisites.
A cluster administrator is required for OIDC registration for UI components and for creating custom cluster security policies.
PodSecurityPolicy Requirements
This chart requires a PodSecurityPolicy to be bound to the target namespace prior to installation. You can either use a predefined PodSecurityPolicy or have your cluster administrator set up a custom PodSecurityPolicy for you.
Predefined PodSecurityPolicy
The chart can be used with the ibm-anyuid-psp predefined PodSecurityPolicy.
Custom PodSecurityPolicy
To set up a custom PodSecurityPolicy, the cluster administrator can either manually create the following resources, or use the configuration scripts to create and delete the resources.
-
Custom PodSecurityPolicy definition:
apiVersion: extensions/v1beta1 kind: PodSecurityPolicy metadata: name: ibm-was-vm-quickstarter-psp spec: allowPrivilegeEscalation: false forbiddenSysctls: - '*' fsGroup: rule: RunAsAny requiredDropCapabilities: - ALL allowedCapabilities: - CHOWN - DAC_OVERRIDE - KILL - FOWNER - SETUID - SETGID runAsUser: rule: RunAsAny seLinux: rule: RunAsAny supplementalGroups: rule: RunAsAny volumes: - configMap - emptyDir - projected - secret - downwardAPI - persistentVolumeClaim -
Custom ClusterRole for the custom PodSecurityPolicy:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ibm-was-vm-quickstarter-clusterrole rules: - apiGroups: - extensions resourceNames: - ibm-was-vm-quickstarter-psp resources: - podsecuritypolicies verbs: - useConfiguration scripts can be used to create the required resources
Download the following scripts located at /ibm_cloud_pak/pak_extensions/pre-install directory.
-
The pre-install instructions are located at
clusterAdministration/createSecurityClusterPrereqs.shfor cluster administrators to create the PodSecurityPolicy and ClusterRole for all releases of this chart. -
The namespace scoped instructions are located at
namespaceAdministration/createSecurityNamespacePrereqs.shfor team administrators/operators to create the RoleBinding for the namespace. This script takes one argument; the name of a pre-existing namespace where the chart will be installed.- Example usage:
./createSecurityNamespacePrereqs.sh myNamespace
- Example usage:
Configuration scripts can be used to clean up resources created
Download the following scripts located at /ibm_cloud_pak/pak_extensions/post-delete directory.
-
The post-delete instructions are located at
clusterAdministration/deleteSecurityClusterPrereqs.shfor cluster administrators to delete the PodSecurityPolicy and ClusterRole for all releases of this chart. -
The namespace scoped instructions are located at
namespaceAdministration/deleteSecurityNamespacePrereqs.shfor team administrators/operators to delete the RoleBinding for the namespace. This script takes one argument; the name of the namespace where the chart was installed.- Example usage:
./deleteSecurityNamespacePrereqs.sh myNamespace
- Example usage:
-
Persistent Volumes
The WAS VM Quickstarter service requires the following persistent volumes:
-
CouchDB volume for service management data (10 GB or larger)
The WAS VM Quickstarter service requires a persistent volume to host a CouchDB database to store service data. The volume relates the data for a particular service instance to the specific resources that are assigned to the service instance. The volume must be configured with a storage capacity of at least 10 GB.
-
Optional: Migration volume (10 GB or larger)
If the optional migration feature is enabled, a persistent volume is required to hold migration artifacts until the target WebSphere server or cell is provisioned. The migration persistent volume must reference an NFS server and have a storage capacity of at least 10 GB.
You can either define your persistent volumes in a YAML file or in the IBM Cloud Private user interface.
Use a YAML file
Create a pv.yaml file that defines the CouchDB volume. Use the values in the following example, replacing the items in <brackets>. This example uses an NFS server, but you can use any shared server supported by IBM Cloud Private. The NFS or other shared server must be set up before you create the persistent volume.
kind: PersistentVolume
apiVersion: v1
metadata:
name: data-<release-name>-ibm-was-vm-quickstarter-couchdb-0
labels:
component: "couchdb"
release: "<release-name>"
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
nfs:
path: /nfs/wasaas/<environment-name>/couchdb-0
server: <nfs-server-address>
Run the following command to create the volume:
kubectl create -f pv.yaml
Optional: If you want to enable migration, create an additional persistent volume pv-migration.yaml file and use the values in the following example, replacing the items in <brackets>. This persistent volume will be used by the migration feature.
kind: PersistentVolume
apiVersion: v1
metadata:
name: data-<release-name>-ibm-was-vm-quickstarter-migration
labels:
component: "migration"
release: "<release-name>"
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
nfs:
path: /nfs/wasaas/<environment-name>/<release-name>/migration
server: <nfs-server-address>
Run the following command to create the migration volume:
kubectl create -f pv-migration.yaml
For more information about performing a migration, see Migrating applications to WAS VM Quickstarter.
Use the UI
For information about creating persistent volumes by using the user interface, see Creating a PersistentVolume in the IBM Cloud Private documentation. Use the corresponding values from the YAML example
Secrets
Cloud Automation Manager
The WAS VM Quickstarter service also requires a secret to be created that contains CAM administrator user name and password.
You can either define the secret using the kubectl command or in the IBM Cloud Private user interface.
For example, when using kubectl, run the following command to create the secret:
kubectl create secret generic cam-credentials --from-literal='username=myadmin' --from-literal='password=mypassword'
You will need to pass the secret name as the cam.secret parameter during Helm chart installation.
Resources Required
For a detailed list of required system resources such as CPU, memory, and disk space, see WAS VM Quickstarter Prerequisites.
Installing the Chart
To install the chart with the release name my-release:
$ helm install --tls --name my-release stable/ibm-was-vm-quickstarter-dev
The command deploys ibm-was-vm-quickstarter-dev on the Kubernetes cluster in the default namespace. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using helm list --tls.
Verifying the Chart
Verify that your Kubernetes pods were deployed successfully. See the instruction after the Helm installation completes. The instruction can also be displayed by viewing the installed Helm release under Menu -> Workloads -> Helm Releases or by running the command: helm status <release> --tls.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete --tls --purge my-release
The command removes all of the Kubernetes components associated with the chart and deletes the release.
Configuration
The following tables lists the configurable parameters of the ibm-was-vm-quickstarter-dev chart and their default values.
| Parameter | Description | Default |
|---|---|---|
environment | The environment name for this WAS VM Quickstarter instance | CAM |
cam.ip | IP address of the Cloud Automation Manager that the WAS VM Quickstarter will target for WAS deployments | |
cam.port | The port address of CAM | 30000 |
cam.secret | A secret name that contains CAM administrator user name and password | |
cam.cloudConnectionName | The CAM connection name | vm-quickstarter-connection |
cam.contentRuntimeName | The CAM content runtime name that will host the WAS VM Quickstarter orchestration artifacts | vm-quickstarter-runtime |
vsphere.osAdminUser | The OS image administrator user name | |
vsphere.osAdminPassword | The OS image administrator user password | |
vsphere.osImage | The OS image deployed in the vSphere datacenter, which the WAS VM Quickstarter uses to host the WAS deployments | |
vsphere.rootDiskSize | The disk size of the OS image. 25 GB is recommended | |
vsphere.rootDiskDatastore | The name of the data store that hosts the image | |
vsphere.resourcePool | The name of the vSphere resource pool to target for WAS deployments | |
vsphere.folder | The name of the vSphere folder to use as target for WAS deployments | |
vsphere.domain | The name of the vSphere domain to use as target for WAS deployments | |
vsphere.datacenter | The name of the vSphere datacenter to use as target for WAS deployments. | |
vsphere.networkInterfaceLabel | The name of the vSphere network interface label to use as target for WAS deployments | |
vsphere.dnsServers | The IP addresses of the DNS servers to configure for WAS deployments | 8.8.8.8 |
vsphere.dnsSuffxies | The DNS domain suffix to use for host name and URLs for WAS deployments | |
vsphere.ipv4Gateway | The IP address of the IPv4 gateway to use for WAS deployments | |
vsphere.ipv4PrefixLength | The length of your IPv4 prefix | |
vsphere.ipPool | A comma separated list of IP addresses to be used as host IPs for WAS virtual machine deployments. See Prerequisites for details | |
console.image.repository | WAS VM Quickstarter console Docker image repository | ibmcom/wasaas-console |
console.image.tag | WAS VM Quickstarter console Docker image tag | 3.0.0 |
console.ingress.path | WAS VM Quickstarter console ingress path | /wasaas-console/ |
| `broker.image.repos |
Deploy ibm-was-vm-quickstarter-dev with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-was-vm-quickstarter-dev on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartibm-was-vm-quickstarter-dev is pinned at v3.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply