Edit your Db2uInstance custom resource (CR) to enable Native Cloud Object Storage
support.
About this task
The Native Cloud Object Storage support is enabled first through the Db2uInstance custom resource
(CR).
Procedure
-
The new advanced option enableCos must be set to "true" in
order to enable the functionality at deployment time:
An example file of the required
edits for the
enableCos parameter:
spec:
version: s11.5.9.0
nodes: 2
addOns:
opendataformats:
enabled: true
advOpts:
enableCos: "true"
- The cloud object storage provider can be optionally configured through the
advanced option cosProvider field:
- The local disk for the caching tier must be configured as part of the storage
configuration under the new "cachingtier" storage section. The
"cachingtier" provides both the size and the storage class that manages the local
NVMe drives on the target nodes. The name and configuration of the storage class is specific to the
deployment environment.
The following example output shows the caching tier configured with a storage size of 100Gi and
using a sample storage class name local-device:
storage:
- name: cachingtier
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: local-device
type: template