ibm-pem-ng-essential-prod
IBM® Sterling Partner Engagement Manager (PEM) reduces the time and resources required to onboard new partners while managing and maintaining existing partners. By automating the onboarding process, Partner Engagement Manager limits costly manual errors and increases efficiency as partners can maintain their own records. Documentation For additional details regarding install parameters check https://www.ibm.com/docs/en/spems/6.3.0?topic=container-prerequisites. License By installing this product you accept the license terms https://www14.software.ibm.com/cgi-bin/weblap/lap.pl?li_formnum=L-XLGK-Q6U2KM&title=IBM%20PEM%20Certified%20Container."
About this chart
IBM Partner Engagement Manager
Introduction
Chart Details
This chart deploys IBM Partner Engagement Manager Essential cluster on a container management platform with the following resources.
Prerequisites
-
Kubernetes version >=1.32 and <=1.36
-
Red Hat OpenShift Container Platform Version 4.19, 4.20, 4.21 and 4.22 or later fixes
-
Helm version >= 3.21.x
-
Ensure that one of the supported database server (Oracle/DB2/MSSQL) is installed and the database is accessible from inside the cluster.
-
Ensure that the docker images for IBM Partner Engagement Manager Essential from Entitlement registry are loaded to an appropriate docker registry.
-
When
volumeClaims.resources.enabledistrue, create a persistent volume for application resources with access mode as 'ReadWriteMany' and place the database driver jar, SEAS jars and MQ jars in the mapped volume location. -
When
volumeClaims.logs.enableistrue, create a persistent volume for application logs with access mode as 'Read Write Many' and create required subfolders for PEM Portal, PEM2.0, Partner Repository, Partner Provisioner. The subfolders must have the 755 permission to read and execute, to be accessible by the pemuser (id:1011) container. -
Create secrets with requisite confidential credentials for passphrase.txt, Keystore.jks dbpasswords and keystore passwords. You can use the supplied configuration files under pak_extensions/pre-install/secret directory.
-
Create a secret from the provided syntax file included in helm charts /ibm-cloudpak-extensons/preinstall/secrets.yaml
oc apply -f app-secrets.yaml -
Create a secret to pull the image from a private registry or repository using following command:
oc create secret docker-registry <name of secret> --docker-server=<your-registry-server> --docker-username=<your-username> --docker-password=<your-password> --docker-email=<your-email> -
Create Secrets with SSL Certificates (Keystore / Truststore) for IBM Partner Engagement Manager
To enable SSL/TLS connectivity (Database, MQ, Ingress, etc.), generate certificates and create the required OpenShift secrets.
Step 1: Generate Self-Signed Certificate
openssl req -x509 -nodes -sha256 \
-subj "/CN=<cluster-or-domain>" \
-days 730 \
-newkey rsa:2048 \
-keyout tls.key \
-out tlsocp.crt
Example:
-addext "subjectAltName=DNS:newpemurl.apps.myocp.example.com"
Step 2: Extract Router CA Certificate
oc extract secret/router-ca --keys=tls.crt -n openshift-ingress-operator
This certificate will be imported into the truststore.
Step 3: Create PKCS12 Keystore
openssl pkcs12 -export \
-name ocpconsole \
-in tlsocp.crt \
-inkey tls.key \
-out togakeystore.p12 \
-password pass:<password> \
-noiter -nomaciter
Step 4: Convert PKCS12 → JKS
keytool -importkeystore \
-srckeystore togakeystore.p12 \
-srcstoretype pkcs12 \
-destkeystore togakeystore.jks \
-alias ocpconsole
Step 5: Import Router CA into Truststore
keytool -importcert \
-keystore togakeystore.jks \
-storepass <password> \
-alias router-ca \
-file tls.crt \
-noprompt
Step 6: Create OpenShift Secrets
Important:
For server keystore secrets, the secret name and keystore filename must match.
Create Keystore Secret
oc create secret generic togakeystore.jks \
--from-file=togakeystore.jks=togakeystore.jks
Create Truststore Secret(s)
oc create secret generic togatruststore.jks \
--from-file=togakeystore.jks=togakeystore.jks
Optional (if additional truststore secret required):
oc create secret generic togatruststoretest.jks \
--from-file=togakeystore.jks
Create TLS Secret (Ingress / Route Usage)
oc create secret tls pem-tls-secret \
--cert=tlsocp.crt \
--key=tls.key
Notes
- The keystore/truststore password must match the application configuration.
subjectAltName (SAN)must include the route hostname.- Secret names must align with Helm values / deployment YAML.
- Use separate keystore/truststore files if required by your security policy.
-
Create configmap with localtime file present in local machine using below command
oc create configmap <configmap-name> --from-file=/etc/localtime -
When installing the chart on a new database which does not have IBM PEM Essential Software schema tables and metadata,
- ensure that
dbsetup.upgradeparameter is set tofalseanddbsetup.enabledparameter is set totrue. This will create the required database tables and metadata in the database before installing the chart.
- When installing the chart on a database with new image upgrade,
- ensure that
dbsetup.upgradeparameter is set totrue.
-
Create service account and apply security context contraints to created service account.
oc create sa <service account name>oc adm policy add-scc-to-user ibm-pem-scc system:serviceaccount:<namespace>:<service account name>Note: Avoid installing multiple charts on same namespace
-
Create a Role and RoleBinding to grant the service account the required permissions for managing resources during chart installation and runtime.
Create Role:
kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: <role name> namespace: <namespace> rules: - apiGroups: ['route.openshift.io'] resources: ['routes','routes/custom-host'] verbs: ['get', 'watch', 'list', 'patch', 'update'] - apiGroups: ['','batch'] resources: ['secrets','configmaps','persistentvolumes','persistentvolumeclaims','pods','services','cronjobs','jobs'] verbs: ['get', 'list', 'delete', 'create', 'update', 'patch'] - apiGroups: ['apps'] resources: ['deployments'] verbs: ['get', 'list', 'patch', 'update']Create RoleBinding:
kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: <rolebinding name> namespace: <namespace> subjects: - kind: ServiceAccount name: <service account name> namespace: <namespace> roleRef: kind: Role name: <role name> apiGroup: rbac.authorization.k8s.ioApply the Role and RoleBinding:
oc apply -f role.yaml oc apply -f rolebinding.yaml
PodSecurityPolicy Requirements
This chart requires a PodSecurityPolicy to be bound to the target namespace prior to installation. Choose either a predefined PodSecurityPolicy or have your cluster administrator create a custom PodSecurityPolicy for you:
- Predefined PodSecurityPolicy name:
ibm-anyuid-psp
This chart optionally defines a custom PodSecurityPolicy which is used to finely control the permissions/capabilities needed to deploy this chart. It is based on the predefined PodSecurityPolicy name: ibm-restricted-psp with extra required privileges. You can enable this policy by using the Platform User Interface or configuration file available under pak_extensions/pre-install/ directory
- From the user interface, you can copy and paste the following snippets to enable the custom PodSecurityPolicy
Note: For kubernetes version 1.25 or higher apiVersion for the PodSecurityPolicy should be policy/v1
-
Custom PodSecurityPolicy definition:
apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: "ibm-pem-psp" labels: app: "ibm-pem-psp" spec: privileged: false allowPrivilegeEscalation: false hostPID: false hostIPC: false hostNetwork: false allowedCapabilities: requiredDropCapabilities: - MKNOD - AUDIT_WRITE - KILL - NET_BIND_SERVICE - NET_RAW - FOWNER - FSETID - SYS_CHROOT - SETFCAP - SETPCAP - CHOWN - SETGID - SETUID - DAC_OVERRIDE allowedHostPaths: runAsUser: rule: MustRunAs ranges: - min: 1 max: 4294967294 runAsGroup: rule: MustRunAs ranges: - min: 1 max: 4294967294 seLinux: rule: RunAsAny supplementalGroups: rule: MustRunAs ranges: - min: 1 max: 4294967294 fsGroup: rule: MustRunAs ranges: - min: 1 max: 4294967294 volumes: - configMap - emptyDir - projected - secret - downwardAPI - persistentVolumeClaim - nfs forbiddenSysctls: - '*' -
Custom ClusterRole for the custom PodSecurityPolicy:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: "ibm-pem-psp" labels: app: "ibm-pem-psp" rules: - apiGroups: - policy resourceNames: - "ibm-pem-psp" resources: - podsecuritypolicies verbs: - use -
apiGroups:
- "" resources:
- secrets verbs:
- get
- list
- patch
- update
-
apiGroups:
- apps resources:
- deployments verbs:
- get
- list
- patch
- update
-
- Create a rolebinding for the above role and the service account:
kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: <rolebinding name> namespace: <namespace> subjects: - kind: ServiceAccount name: <service account> namespace: <namespace> roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: ibm-pem-psp
SecurityContextConstraints Requirements
- Predefined SecurityContextConstraints name:
ibm-anyuid-scc
This chart optionally defines a custom SecurityContextConstraints (on Red Hat OpenShift Container Platform) which is used to finely control the permissions/capabilities needed to deploy this chart. It is based on the predefined SecurityContextConstraint name: ibm-restricted-scc with extra required privileges.
-
Custom SecurityContextConstraints definition:
apiVersion: security.openshift.io/v1 kind: SecurityContextConstraints metadata: name: ibm-pem-scc labels: app: "ibm-pem-scc" allowHostDirVolumePlugin: false allowHostIPC: false allowHostNetwork: false allowHostPID: false allowHostPorts: false privileged: false allowPrivilegeEscalation: false allowPrivilegedContainer: false allowedCapabilities: allowedFlexVolumes: [] allowedUnsafeSysctls: [] defaultAddCapabilities: [] defaultAllowPrivilegeEscalation: false forbiddenSysctls: - "*" fsGroup: type: MustRunAs ranges: - min: 1 max: 4294967294 readOnlyRootFilesystem: false requiredDropCapabilities: - MKNOD - AUDIT_WRITE - KILL - NET_BIND_SERVICE - NET_RAW - FOWNER - FSETID - SYS_CHROOT - SETFCAP - SETPCAP - CHOWN - SETGID - SETUID - DAC_OVERRIDE runAsUser: type: MustRunAsRange # This can be customized for your host machine seLinuxContext: type: RunAsAny # seLinuxOptions: # level: # user: # role: # type: supplementalGroups: type: MustRunAs ranges: - min: 1 max: 4294967294 # This can be customized for your host machine volumes: - configMap - downwardAPI - emptyDir - persistentVolumeClaim - projected - secret - nfs priority: 0 -
Custom ClusterRole for the custom SecurityContextConstraints:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: "ibm-pem-scc" labels: app: "ibm-pem-scc" rules: - apiGroups: - security.openshift.io resourceNames: - "ibm-pem-scc" resources: - securitycontextconstraints verbs: - use - apiGroups: - "" resources: - secrets verbs: - get - list - patch - update - apiGroups: - apps resources: - deployments verbs: - get - list - patch - update -
Create a rolebinding for the above role and the service account:
kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: <rolebinding name> namespace: <namespace> subjects: - kind: ServiceAccount name: <service account> namespace: <namespace> roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: ibm-pem-scc
Resources Required
Configuration
The following table lists the configurable parameters for the chart
| Pod | Memory Requested | Memory Limit | CPU Requested | CPU Limit |
|---|---|---|---|---|
| PEM Portal pod | 4 Gi | 8 Gi | 1 | 2 |
| PEM2.0 Portal pod | 4 Gi | 8 Gi | 1 | 2 |
| PP pod | 2 Gi | 4 Gi | 1 | 2 |
| PR pod | 2 Gi | 4 Gi | 1 | 2 |
| API Gateway pod | 2 Gi | 4 Gi | 1 | 2 |
| Agent pod | 2 Gi | 4 Gi | 1 | 2 |
| Purge (API) pod |
Deploy ibm-pem-ng-essential-prod with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-pem-ng-essential-prod 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-pem-ng-essential-prod is pinned at v2.0.5 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