Skip to content

Commit

Permalink
remove comment for FLEET_ENROLLMENT_TOKEN; use Needed everywhere inst…
Browse files Browse the repository at this point in the history
…ead of Required

Signed-off-by: Tetiana Kravchenko <[email protected]>
  • Loading branch information
tetianakravchenko committed Jul 14, 2022
1 parent bbc5d39 commit df21c4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ spec:
# Fleet Server URL to enroll the Elastic Agent into
- name: FLEET_URL
value: "https://fleet-server:8220"
# The token to use for Fleet enrollment
# If FLEET_ENROLLMENT_TOKEN is empty then KIBANA_HOST, KIBANA_FLEET_USERNAME, KIBANA_FLEET_PASSWORD are needed
- name: FLEET_ENROLLMENT_TOKEN
value: ""
Expand Down Expand Up @@ -225,7 +224,7 @@ rules:
- jobs
- cronjobs
verbs: [ "get", "list", "watch" ]
# Required for apiserver
# Needed for apiserver
- nonResourceURLs:
- "/metrics"
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
labels:
app: elastic-agent
spec:
# To run Elastic Agent on master nodes
# Tolerations are needed to run Elastic Agent on master nodes.
# Agents running on master nodes collect metrics from the control plane components (scheduler, controller manager) of Kubernetes
tolerations:
- key: node-role.kubernetes.io/master
Expand All @@ -35,11 +35,10 @@ spec:
# Set to true to communicate with Fleet with either insecure HTTP or unverified HTTPS
- name: FLEET_INSECURE
value: "true"
# URL to enroll the Fleet Server into
# Fleet Server URL to enroll the Elastic Agent into
- name: FLEET_URL
value: "https://fleet-server:8220"
# The token to use for Fleet enrollment
# If left empty KIBANA_HOST, KIBANA_FLEET_USERNAME, KIBANA_FLEET_PASSWORD are needed
# If FLEET_ENROLLMENT_TOKEN is empty then KIBANA_HOST, KIBANA_FLEET_USERNAME, KIBANA_FLEET_PASSWORD are needed
- name: FLEET_ENROLLMENT_TOKEN
value: ""
- name: KIBANA_HOST
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ rules:
- nodes/stats
verbs:
- get
# Required for apiserver
# Needed for apiserver
- nonResourceURLs:
- "/metrics"
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
labels:
app: elastic-agent-standalone
spec:
# To run Elastic Agent on Kubernetes master nodes
# Tolerations are needed to run Elastic Agent on Kubernetes master nodes.
# Agents running on master nodes collect metrics from the control plane components (scheduler, controller manager) of Kubernetes
tolerations:
- key: node-role.kubernetes.io/master
Expand Down

0 comments on commit df21c4c

Please sign in to comment.