Hide Forgot
OCP 4.1.4 w/ rook-ceph storage deployed. rook-ceph storageclass is set to default and it properly provisions PVs for image-registry, prometheus (metrics) and other workloads. when i create the ClusterLogging instance specifying the 'storage' config and then go and 'oc edit ClusterLogging instance' after it is created, the storage config is not present. I just see "storage: {}". When i re-apply the storage config manually it holds, but the PVCs dont get created for ES. Here is my full config: ``` apiVersion: "logging.openshift.io/v1" kind: "ClusterLogging" metadata: name: "instance" namespace: "openshift-logging" spec: managementState: "Managed" logStore: elasticsearch: nodeCount: 3 redundancyPolicy: SingleRedundancy resources: limits: memory: 2Gi requests: cpu: 200m memory: 2Gi storage: storageClass: name: rook-ceph-block size: 20G type: elasticsearch visualization: type: "kibana" kibana: resources: limits: memory: 1Gi requests: cpu: 500m memory: 1Gi replicas: 1 curation: type: "curator" curator: resources: limits: memory: 200Mi requests: cpu: 200m memory: 200Mi schedule: "*/5 * * * *" collection: logs: type: "fluentd" fluentd: resources: limits: memory: 1Gi requests: cpu: 200m memory: 1Gi ```
Hi Nicholas, your storage spec should be defined as follows: storage: storageClassName: rook-ceph-block size: 20G https://github.com/openshift/cluster-logging-operator/blob/master/pkg/apis/logging/v1/clusterlogging_types.go#L62 https://github.com/openshift/elasticsearch-operator/blob/master/pkg/apis/logging/v1/elasticsearch_types.go#L100-L103
Thanks! That worked.... This doc needs to be fixed. https://docs.openshift.com/container-platform/4.1/logging/config/efk-logging-elasticsearch.html#efk-logging-elasticsearch-storage_efk-logging-elasticsearch
Docs PR: https://github.com/openshift/openshift-docs/pull/16056