1.开启配置
在集群板块点击定制资源定义 ClusterConfiguration
搜索logging
logging:
enabled: true
logsidecar:
enabled: true
replicas: 2
enabled: false 改为 enabled: true
2.镜像拉取错误
kubectl edit sts opensearch-cluster-data -n kubesphere-logging-system
kubectl edit sts opensearch-cluster-data-0 -n kubesphere-logging-system
initContainers:
- args:
- chown -R 1000:1000 /usr/share/opensearch/data
command:
- sh
- -c
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/busybox:latest
imagePullPolicy: Always
name: fsgroup-volume
resources: {}
securityContext:
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
将images中busybox:latest修改为可拉取镜像