Skip to content

Commit 27dacc5

Browse files
authored
Fixing the hints autodiscovery configuration path in Elastic Agent Manifests (elastic#5136)
* updating manifests with hints notes
1 parent 7fffe15 commit 27dacc5

7 files changed

+13
-6
lines changed

deploy/kubernetes/creator_k8s_manifest.sh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ echo "" >> $OUTPUT_FILE
5252

5353
#Replacing all occurencies of elastic-agent-standalone
5454
sed -i -e 's/elastic-agent-standalone/elastic-agent/g' $OUTPUT_FILE
55+
sed -i -e 's/elastic-agent\/templates.d/elastic-agent-standalone\/templates.d/g' $OUTPUT_FILE
5556

5657
#Remove ES_HOST entry from file
5758
sed -i -e '/# The Elasticsearch host to communicate with/d' $OUTPUT_FILE

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset-configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ data:
2828
providers.kubernetes:
2929
node: ${NODE_NAME}
3030
scope: node
31-
#Uncomment to enable hints' support
31+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3232
#hints.enabled: true
33+
#hints.default_container_logs: true
3334
inputs:
3435
- id: kubernetes-cluster-metrics
3536
condition: ${kubernetes_leaderelection.leader} == true

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-ksm-daemonset-configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ data:
2626
providers.kubernetes:
2727
node: ${NODE_NAME}
2828
scope: node
29-
#Uncomment to enable hints' support
29+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3030
#hints.enabled: true
31+
#hints.default_container_logs: true
3132
inputs:
3233
- id: kubernetes-cluster-metrics
3334
condition: ${kubernetes_leaderelection.leader} == true

deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-ksm-daemonset-configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ data:
2626
providers.kubernetes:
2727
node: ${NODE_NAME}
2828
scope: node
29-
#Uncomment to enable hints' support
29+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3030
#hints.enabled: true
31+
#hints.default_container_logs: true
3132
inputs:
3233
- id: kubernetes-cluster-metrics
3334
condition: ${kubernetes_leaderelection.leader} == true

deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ data:
2828
providers.kubernetes:
2929
node: ${NODE_NAME}
3030
scope: node
31-
#Uncomment to enable hints' support
31+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3232
#hints.enabled: true
33+
#hints.default_container_logs: true
3334
inputs:
3435
- id: kubernetes-cluster-metrics
3536
condition: ${kubernetes_leaderelection.leader} == true

deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ data:
2828
providers.kubernetes:
2929
node: ${NODE_NAME}
3030
scope: node
31-
#Uncomment to enable hints' support
31+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3232
#hints.enabled: true
33+
#hints.default_container_logs: true
3334
inputs:
3435
- id: kubernetes-cluster-metrics
3536
condition: ${kubernetes_leaderelection.leader} == true

deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-ksm-daemonset-configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ data:
2626
providers.kubernetes:
2727
node: ${NODE_NAME}
2828
scope: node
29-
#Uncomment to enable hints' support
29+
#Uncomment to enable hints' support - https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html
3030
#hints.enabled: true
31+
#hints.default_container_logs: true
3132
inputs:
3233
- id: kubernetes-cluster-metrics
3334
condition: ${kubernetes_leaderelection.leader} == true

0 commit comments

Comments
 (0)