Example config map for redis where the redis image name is customized as redis-test or redis-stage:
---
kind: ConfigMap
apiVersion: v1
metadata:
name: redis-config
namespace: default
data:
redis_ad: |-
ad_identifiers:
- redis-test
- redis-stage
init_config:
instances:
- host: "%%host%%"
port: "6379"
logs:
source: redis
service: redis
volumeMounts for the agent manifest:
[...]
volumeMounts:
- name: redis-config
mountPath: /conf.d/redisdb.d
[...]
volumes:
[...]
- name: redis-config
configMap:
name: redis-config
items:
- key: redis_ad
path: conf.yaml