Preparing a Kubernetes Cluster
Prepare a Kubernetes cluster:
-
Set up and configure a cluster that meets the following requirements:
-
A supported version of Kubernetes is used in this cluster. To learn which Kubernetes versions are supported by CloudBlue Commerce, see Appendix: Supported Kubernetes Versions.
-
This cluster has enough resources to run CloudBlue Commerce components.
-
This cluster includes at least three worker nodes, and each node has at least 8 CPU cores and at least 4 GB of RAM per CPU core.
To learn how to set up and configure a cluster, please use the Kubernetes documentation.
Important:
- In this CloudBlue Commerce version, the ipvs mode of kube-proxy is not supported.
- Pod Security Policies are not supported in the current CloudBlue Commerce version. Do not enable them in your cluster.
- Restrictedptrace
mode must be configured on each Kubernetes host. To do this, add the following line to the/etc/sysctl.d/10-ptrace.conf
file:kernel.yama.ptrace_scope = 1
-
-
Ensure that time is synchronized on all nodes of the cluster. For example, on each node, configure time synchronization with NTP servers.
-
In the cluster, create the following namespaces:
-
cbc: for CloudBlue Commerce components
-
infrastructure: for infrastructure components such as ingress controllers, log management and analytics solutions, and monitoring and alerting solutions
-
connectors: for APS connectors
-
-
Obtain and save a kubeconfig file with the administrator credentials of this cluster. To obtain the instructions on how to do this, please refer to the Kubernetes documentation.