ibm-sccd
A Helm chart to deploy IBM Sterling Control Center Director - Configuration Manager on a containerized platform. Documentation For additional details regarding install parameters check CM Helm Chart documentation at https://www.ibm.com/docs/en/control-center/6.3.0?topic=630-control-center-director License By installing this product you accept the following license terms: https://www-40.ibm.com/software/sla/sladb.nsf
About this chart
IBM Sterling Control Center Director V6.3.0.0
Introduction
IBM▒ Control Center Director is a centralized monitoring and management system. It gives operations personnel the capability to continuously monitor the status of Configuration Managers, engines, and adapters across the enterprise for the following server types from one central location: IBM Sterling Connect:Direct▒, IBM Sterling Connect:Enterprise▒, IBM Sterling B2B Integrator, IBM Sterling File Gateway, IBM Global High Availability Mailbox, IBM Sterling Connect:Express, IBM QuickFile, IBM MQ Managed File Transfer and Many FTP servers. To find out more, see the Knowledge Center for IBM Sterling Control Center Director.
Chart Details
This chart deploys IBM Sterling Control Center Director on a container management platform with the following resources deployments
- a statefulset pod
<release-name>-ibm-sccdwith 1 replica by default. - a configMap
<release-name>-ibm-sccd. This is used to provide default configuration in scc_config_file. - a service
<release-name>-ibm-sccd. This is used to expose the Control Center Director services for accessing using clients. - a service-account
<release-name>-ibm-sccd-serviceaccount. This service will not be created ifserviceAccount.createisfalse. - a persistence volume claim
<release-name>-ibm-sccd-pvc-ccm. - a persistence volume claim
<release-name>-ibm-sccd-pvc-ui.
Prerequisites
-
Red Hat OpenShift Container Platform Version 4.10.0 or later fixes
-
Kubernetes version >= 1.23 with beta APIs enabled.
-
Helm version >= 3.2
-
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 Sterling Control Center Director from IBM Entitled Registry are downloaded and pushed to an image registry accessible to the cluster.
-
Database driver files can be passed using any one of the following ways: a. Create a persistent volume with access mode as 'Read Only Many' and place the database driver jar files in the mapped volume location. b. Create a wrapper image over existing control center image and add database driver files to that new image and give that path in configuration of control center. Sample Dockerfile content can be found at location ibm_cloud_pak/pak_extensions/pre-install/wrapper/. c. Create an image that includes database drivers, specify that image as extra init container and use command to copy drivers to one of shared mapped location so that main container can access those drivers.
-
Keystore and trust store files can be passed using one of the following ways: a. Create a persistent volume with access mode as 'Read Only Many' and place the Key store and trust store files in the mapped volume location. b. Key store and trust store files can be specified using kubernetes secrets using following command
kubectl create secret generic ibm-sccd-certs --from-file=keystore=<path to keystore file> --from-file=truststore=<path to truststore file>
-
Create a persistent volume for mapping configuration and logs of Control Center. Sample file can be found at location ibm_cloud_pak/pak_extensions/pre-install/volumes/
-
Create a secret with all secure credentials such as database password, keystore, truststore passwords, admin password and user key. Example can be found at ibm_cloud_pak/pak_extensions/pre-install/secret/.
-
Create a secret to pull the image from a private registry or repository using following command
kubectl create secret docker-registry <name of secret> --docker-server=<your-registry-server> --docker-username=<your-username> --docker-password=<your-password> --docker-email=<your-email>
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.
- Predefined PodSecurityPolicy name:
ibm-privileged-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
- Custom PodSecurityPolicy definition:
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: ibm-sccd-psp
labels:
app: "ibm-sccd-psp"
spec:
privileged: false
allowPrivilegeEscalation: true
hostPID: false
hostIPC: false
hostNetwork: false
requiredDropCapabilities:
allowedCapabilities:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
- FOWNER
allowedHostPaths:
runAsUser:
rule: MustRunAsNonRoot
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-sccd-psp"
labels:
app: "ibm-sccd-psp"
rules:
- apiGroups:
- policy
resourceNames:
- ibm-sccd-psp
resources:
- podsecuritypolicies
verbs:
- use
-
From the command line, you can run the setup scripts included under pak_extensions (untar the downloaded archive to extract the pak_extensions directory)
As a cluster admin the pre-install script is located at:
- pre-install/clusterAdministration/createSecurityClusterPrereqs.sh
As team admin the namespace scoped pre-install script is located at:
- pre-install/namespaceAdministration/createSecurityNamespacePrereqs.sh
SecurityContextConstraints Requirements
- Predefined SecurityContextConstraints name:
ibm-privileged-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:
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
apiVersion: security.openshift.io/v1
defaultAddCapabilities: null
fsGroup:
type: MustRunAs
ranges:
- min: 1
max: 4294967294
kind: SecurityContextConstraints
metadata:
name: ibm-sccd-scc
labels:
app: "ibm-sccd-scc"
priority: null
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
runAsUser:
type: MustRunAsRange
uidRangeMin: 1000
uidRangeMax: 65535
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
users: []
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret
- Custom ClusterRole for the custom SecurityContextConstraints:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: "ibm-sccd-scc"
labels:
app: "ibm-sccd-scc"
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- ibm-sccd-scc
resources:
- securitycontextconstraints
verbs:
- use
-
From the command line, you can run the setup scripts included under pak_extensions (untar the downloaded archive to extract the pak_extensions directory)
As a cluster admin the pre-install script is located at:
- pre-install/clusterAdministration/createSecurityClusterPrereqs.sh
As team admin the namespace scoped pre-install script is located at:
- pre-install/namespaceAdministration/createSecurityNamespacePrereqs.sh
Installing a PodDisruptionBudget
- defaultPodDisruptionBudget.enabled - If true, It will create a pod disruption budget for IBM Sterling Control Center Director pods.
- defaultPodDisruptionBudget.minAvailable - It will specify Minimum number / percentage of pods that should remain scheduled for IBM Sterling Control Center Director pod.
Network Policy
For Certified Container deployments, few default network policies are created out of the box as per mandatory security guidelines. By default all ingress and egress traffic are denied with few additional policies to allow communication within cluster and on ports configured in the helm charts configuration. Additionally custom ingress and egress policies can be configured in values yaml to allow traffic from and to specific external service endpoints.
Note: By default all ingress and egress traffic from or to external services are denied. You will need to create custom network policies to allow ingress and egress traffic from or to services outside of the cluster like database, MQ, protocol adapter endpoints, any other third party service integration and so on.
Out of the box Ingress policies
- Deny all ingress traffic
- Allow ingress traffic from all pods in the current namespace in the cluster
- Allow ingress traffic on the additional configured ports in helm values
Out of the box Egress policies
- Deny all egress traffic
- Allow egress traffic within the cluster
Resources Required
This chart uses the following resources by default:
- 8Gi of persistent volume
- 20 GB Disk space
- 3000m CPU
- 8Gi Memory
- 1 master node and at least 1 worker node
Agreement to IBM Control Center License
You must read the IBM Sterling Control Center License agreement terms before installation, using the below link: [License] https://www-40.ibm.com/software/sla/sladb.nsf (L/N: L-KNAN-C6VGE3)
Installing the Chart
Prepare a custom values.yaml file based on the configuration section.
To install the chart with the release name my-release:
Ensure that the chart is downloaded locally and available.
Run the below command
$ helm install my-release -f values.yaml ibm-sccd-3.0.2.tgz
Depending on the capacity of the kubernetes worker node and database network connectivity, chart deployment can take on average 6-7 minutes for Installing Control Center.
Configuration
The following tables lists the configurable parameters of the IBM Control Center Director chart and their default values.
| Parameter | Description | Default |
|---|---|---|
arch | Node Architecture | amd64 |
replicaCount | Number of deployment replicas | 1 |
image.repository | Image full name including repository | |
image.tag | Image tag | |
image.imageSecrets | Image pull secrets | |
image.pullPolicy | Image pull policy | IfNotPresent |
ccArgs.appUserUID | UID for continer user | |
ccArgs.ccInterval | Interval Time between pod restart | 2h |
ccArgs.devEnvDropTables | Flag for dropping table in dev environment | false |
ccArgs.enableAutoRebalanceServers | Auto rebalancing of monitored servers between EPs | true |
ccArgs.productEntitilement | Product Entitlement | |
ccArgs.dbType | Database Type | |
ccArgs.dbHost | Database Hostname | |
ccArgs.dbPort | Database Port number | |
ccArgs.dbUser | Database Username | |
ccArgs.dbName | Database name | |
ccArgs.dbLoc | Database localization | none |
ccArgs.dbInit | Database Initialization Flag | true |
ccArgs.dbPartition | Database Partitioning Flag | false |
ccArgs.dbDrivers | Database drivers | |
ccArgs.mssqlGlobal | Database Globalization Flag | false |
ccArgs.weblistenAddress | Web Listen Address | 0.0.0.0. |
ccArgs.webHost | Web Hostname | |
ccArgs.autoStopJavaWebAppServer | Auto stop Java web server | true |
ccArgs.eventRepositoryAuth | Event Repository Autentication | false |
| `ccArgs.emai |
Deploy ibm-sccd with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-sccd 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-sccd is pinned at v3.0.2 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