Skip to content

Commit

Permalink
Adjust sample command outputs in the Agent Fleet documentation (elast…
Browse files Browse the repository at this point in the history
…ic#7213)

This adds `-quickstart` in sample command outputs, i.e. change pod name from elastic-agent-agent-t49fd to elastic-agent-quickstart-agent-t49fd, so as to keep the sample yaml manifest and the sample command outputs, aligned and easy to follow.
  • Loading branch information
kunisen authored and thbkrkr committed Oct 10, 2023
1 parent ec3fab9 commit 57f73e0
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,32 +183,32 @@ kubectl get agent
+
[source,sh,subs="attributes"]
----
NAME HEALTH AVAILABLE EXPECTED VERSION AGE
elastic-agent green 3 3 {version} 14s
fleet-server green 1 1 {version} 19s
NAME HEALTH AVAILABLE EXPECTED VERSION AGE
elastic-agent-quickstart green 3 3 {version} 14s
fleet-server-quickstart green 1 1 {version} 19s
----

. List all the Pods belonging to a given Elastic Agent specification.
+
[source,sh]
----
kubectl get pods --selector='agent.k8s.elastic.co/name=elastic-agent'
kubectl get pods --selector='agent.k8s.elastic.co/name=elastic-agent-quickstart'
----
+
[source,sh]
----
NAME READY STATUS RESTARTS AGE
elastic-agent-agent-t49fd 1/1 Running 0 54s
elastic-agent-agent-xbcxr 1/1 Running 0 54s
elastic-agent-agent-zqp55 1/1 Running 0 54s
NAME READY STATUS RESTARTS AGE
elastic-agent-quickstart-agent-t49fd 1/1 Running 0 54s
elastic-agent-quickstart-agent-xbcxr 1/1 Running 0 54s
elastic-agent-quickstart-agent-zqp55 1/1 Running 0 54s
----

. Access logs for one of the Pods.
+
[source,sh]
----
kubectl logs -f elastic-agent-agent-xbcxr
kubectl logs -f elastic-agent-quickstart-agent-xbcxr
----

. Configure the policy used by Elastic Agents. Check link:https://www.elastic.co/guide/en/fleet/current/agent-policy.html[Elastic Agent policies] for more details.
Expand Down

0 comments on commit 57f73e0

Please sign in to comment.