How can I specify a custom path in our private registry for filebeat and metricbeat images?
Note, these are the images that are used when Elastic pod is deployed, it seems that filebeat and metricbeat containers are needed as well. I cant seem to figure out where I can specify their custom paths for the Elastic deployment.
I tried to add spec.nodeSets[name].podTemplate.spec.containers[filebeat].image and `spec.nodeSets[name].podTemplate.spec.containers[metricbeat].image but it seems that the eck-operator ignores that.
Posted an update to the github issue. Its not possible to change these paths, the eck-oprator prefixes eck-operator.containerRepository to every single image path, its hard coded to do that.
Only work around is you need to put ALL your images under one repository and use that path.
I don’t think this is accurate. You have multiple options to override the images in use:
you can set the global —container-registry flag in the operator to point to your own registry. As you observed correctly your own registry has then to follow the layout of Elastic’s registry
you can set the global —container-repository this means all your images have to live in the same repository
you can manually override every single image in use through the podTemplate
eck-elasticsearch:
enabled: true
# Name of the Elasticsearch resource
fullnameOverride: elasticsearch
# Version of Elasticsearch
version: 9.2.0
# Stack monitoring configuration
# Sends both metrics and logs to the monitoring cluster
monitoring:
metrics:
elasticsearchRefs:
- name: monitoring
namespace: observability
logs:
elasticsearchRefs:
- name: monitoring
namespace: observability
# Node configuration
nodeSets:
- name: default
count: 3
config:
# Comment out when setting vm.max_map_count via initContainer
# For production workloads, it is strongly recommended to increase
# the kernel setting vm.max_map_count to 262144 and leave this unset
node.store.allow_mmap: false
# Pod template configuration
podTemplate:
spec:
containers:
# Override the filebeat sidecar container image for log monitoring
# The container name must match "filebeat" to override the logs monitoring sidecar
- name: filebeat
image: my-custom/repo/filebeat:9.2.1
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.