ibm-sfg-prod
IBM Sterling File Gateway lets organizations transfer files between partners by using different protocols, conventions for naming files, and file formats. A scalable and security-enabled gateway, Sterling File Gateway enables companies to consolidate all their internet-based file transfers on a single edge gateway, which helps secure your B2B collaboration network and the data flowing through it. Documentation For additional details regarding install parameters check https://www.ibm.com/docs/en/b2b-integrator/6.2.1?topic=integrator-installing-sterling-b2b-using-certified-container. License By installing this product you accept the license terms https://ibm.biz/SFG_621_withRHO | https://ibm.biz/SFG_621_forRHO
About this chart
IBM Sterling File Gateway Enterprise Edition v6.2.2.2
Introduction
IBM Sterling File Gateway lets organizations transfer files between partners by using different protocols, conventions for naming files, and file formats. A scalable and security-enabled gateway, Sterling File Gateway enables companies to consolidate all their internet-based file transfers on a single edge gateway, which helps secure your B2B collaboration network and the data flowing through it. To find out more, see IBM Sterling File Gateway on IBM Marketplace.
Chart Details
This chart deploys IBM Sterling File Gateway cluster on a container management platform with the following resources Deployments
- Application Server Independent (ASI) server with 1 replica by default
- Adapter Container (AC) server with 1 replica by default
- Liberty API server with 1 replica by default Services
- ASI service - This service is used to access ASI servers using a consistent IP address
- AC service - This service is used to access AC servers using a consistent IP address
- Liberty API service - This service is used to access API servers using a consistent IP address
Prerequisites
-
Red Hat OpenShift Container Platform Version 4.19.0 or later fixes Version 4.20.0 or later fixes Version 4.21.0 or later fixes Version 4.22.0 or later fixes
-
Kubernetes version >= 1.34 and <= 1.37
-
Helm version >= 3.21.x >= 4.2.x
-
Ensure that the docker images for IBM Sterling File Gateway Software Enterprise Edition from IBM Entitled Registry are downloaded and pushed to an image registry accessible to the cluster.
-
Ensure that one of the supported database server (Oracle/DB2/MSSQL) is installed and the database is accessible from inside the cluster.
-
In case required by an adapter service or Adapter Container server, ensure that a supported MQ Server version (IBM MQ or ActiveMQ Server) is installed and accessible from inside the cluster.
-
Provide external resource artifacts like the database driver jar, Key store and trust store files, Standards jar and so on using an init container for resources or a persistent volume for resources. Either of the option can be used but not both at the same time. a. For using init container for resources when
resourcesInit.enabledistrue, create an init container image bundled with the required external resource artifacts and configure the image details in theresourcesInit.imagesection. b. For using persistent volume for resources whenappResourcesPVC.enabledistrue, create a persistent volume for application resources with access mode as 'Read Only Many' and place the required external resource artifacts in the mapped volume location. -
When
appLogsPVC.enabledistrue, create a persistent volume for application logs with access mode as 'Read Write Many'. -
When
appDocumentsPVC.enabledistrue, create a persistent volume for application document storage with access mode as 'Read Write Many'. -
Create custom network policies to enable required ingress and egress endpoints for required external services like database server, MQ server, 3rd party integration services, protocol adapter endpoints and so on.
-
Create secrets with requisite confidential credentials for system passphrase, database, MQ server and Liberty. You can use the supplied configuration files under pak_extensions/pre-install/secret directory.
-
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>Configure this pull secret in the service account used for deployment using this command
kubectl patch serviceaccount <service-account-name> -p '{"imagePullSecrets": [{"name": "<pull-secret-name>"}]}'It is recommended to configure the pull secret in the service account as it automatically binds as a pull secret for all application pods. If the pull secret is added to the service account then the image pullSecret configurations in the helm configuration file are not required.
-
If applicable, create secrets with confidential certificates required by Database, MQ or Liberty for SSL connectivity using below command
kubectl create secret generic <secret-name> --from-file=/path/to/<certificate> -
When installing the chart on a new database which does not have IBM Sterling File Gateway Software schema tables and metadata,
- ensure that
dataSetup.enableparameter is set totrueanddataSetup.upgradeparameter is set asfalse. This will create the required database tables and metadata in the database before installing the chart.
- When installing the chart on a database on an older release version
- ensure that
dataSetup.enableparameter is set totrue,dataSetup.upgradeparameter is set astrueandenv.upgradeCompatibilityVerifiedis set astrue. This will upgrade the given database tables and metadata to the latest version.
- Automatically installing ibm-licensing-operator with a stand-alone IBM Containerized Software using Operator Lifecycle Manager (OLM) Use the automatic script to install License Service on any Kubernetes-orchestrated cloud. The script creates an instance and validates the steps. It was tested to work on OpenShift Container Platform 4.8+, vanilla Kubernetes custer, and is available at:
- pre-install/license/ibm_licensing_operator_install.sh Post-installation steps:
- https://github.com/IBM/ibm-licensing-operator/blob/master/README.md#post-installation-steps
Installation against a pre-loaded database
When installing the chart against a database which already has the Sterling File Gateway Software tables and factory meta data ensure that datasetup.enable parameter is set to false. This will avoid re-creating tables and overwriting factory data.
Creating a Role Based Access Control (RBAC)
If you are deploying the application on a namespace other than the default namespace, and if you have not created Role Based Access Control (RBAC), create RBAC with the cluster admin role.
The following sample file illustrates RBAC for the default service account with the target namespace as <namespace>. The same can be applied to any existing or new service account created for the application by updating the service account name in the below RoleBinding template.
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibm-sfg-role-<namespace>
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: ['create', 'get', 'list', 'delete', 'patch', 'update']
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibm-sfg-rolebinding-<namespace>
namespace: <namespace>
subjects:
- kind: ServiceAccount
name: default
namespace: <namespace>
roleRef:
kind: Role
name: ibm-sfg-role-<namespace>
apiGroup: rbac.authorization.k8s.io
PodSecurityPolicy Requirements
With Kubernetes v1.25, Pod Security Policy (PSP) API has been removed and replaced with Pod Security Admission (PSA) contoller. Kubernetes PSA conroller enforces predefined Pod Security levels at the namespace level. The Kubernetes Pod Security Standards defines three different levels: privileged, baseline, and restricted. Refer to Kubernetes [Pod Security Standards] (https://kubernetes.io/docs/concepts/security/pod-security-standards/) documentation for more details. This chart is compatible with the restricted security level.
For users upgrading from older Kubernetes version to v1.25 or higher, refer to Kubernetes Migrate from PSP documentation to help with migrating from PodSecurityPolicies to the built-in Pod Security Admission controller.
For users continuing on older Kubernetes versions (<1.25) and using PodSecurityPolicies, choose either a predefined PodSecurityPolicy or have your cluster administrator create a custom PodSecurityPolicy for you. This chart is compatible with most restrictive policies. Below is an optional custom PSP definition based on the IBM restricted PSP.
- Predefined PodSecurityPolicy name:
ibm-restricted-psp
- From the user interface or command line, you can copy and paste the following snippets to create and enable the below custom PodSecurityPolicy based on IBM restricted PSP.
-
Custom PodSecurityPolicy definition:
apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: "ibm-sfg-psp" labels: app: "ibm-sfg-psp" spec: privileged: false allowPrivilegeEscalation: false hostPID: false hostIPC: false hostNetwork: false allowedCapabilities: requiredDropCapabilities: - ALL 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 Role for the custom PodSecurityPolicy:
apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: "ibm-sfg-psp" labels: app: "ibm-sfg-psp" rules: - apiGroups: - policy resourceNames: - "ibm-sfg-psp" resources: - podsecuritypolicies verbs: - use -
Custom Role binding for the custom PodSecurityPolicy:
apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: "ibm-sfg-psp" labels: app: "ibm-sfg-psp" roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: "ibm-sfg-psp" subjects: - apiGroup: rbac.authorization.k8s.io kind: Group name: system:serviceaccounts namespace: {{ NAMESPACE }}
-
SecurityContextConstraints Requirements
Red Hat OpenShift provides a pre-defined or default set of SecurityContextConstraints (SCC). These SCCs are used to control permissions for pods. These permissions include actions that a pod can perform and what resources it can access. You can use SCCs to define a set of conditions that a pod must run with to be accepted into the system. Refer to OpenShift Managing Security Context Constraints documentation for more details on the default SCCs. This chart is compatible with both restricted and resticted-v2 (added in OpenShift v4.11) default SCCs and does not require a custom SCC to be defined explicity.
For OpenShift, choose either a predefined SCC or have your cluster administrator create a custom SCC for you as per the security profile and policies adopted for all OpenShift deployments. This chart is compatible with most restrictive security context constraints. Below is an optional custom SCC definition based on the IBM restricted SCC.
- Predefined SecurityContextConstraints name:
ibm-restricted-scc
-
From the user interface or command line, you can copy and paste the following snippets to create and enable the below custom SCC based on IBM restricted SCC.
-
Custom SecurityContextConstraints definition:
apiVersion: security.openshift.io/v1 kind: SecurityContextConstraints metadata: name: ibm-sfg-scc labels: app: "ibm-sfg-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: - ALL runAsUser: type: MustRunAsRange # This can be customized for your host machine seLinuxContext: type: MustRunAs # 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 Role for the custom SecurityContextConstraints:
apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: "ibm-sfg-scc" labels: app: "ibm-sfg-scc" rules: - apiGroups: - security.openshift.io resourceNames: - "ibm-sfg-scc" resources: - securitycontextconstraints verbs: - use- Custom Role binding for the custom SecurityContextConstraints:
apiVersion: rbac.authorization.k8s.io/
-
Deploy ibm-sfg-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-sfg-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-sfg-prod is pinned at v3.2.4 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