Skip to content

Commit

Permalink
chore: resolve localhost host collector and analyser (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh authored Aug 1, 2023
1 parent 293d1b9 commit 0153b39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions host/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ spec:
backgroundReadIOPS: 50
backgroundReadIOPSJobs: 1
exclude: true
- run:
collectorName: "localhost-ips"
command: "sh"
args: ["-c", "host localhost"]
hostAnalyzers:
- certificate:
collectorName: k8s-api-keypair
Expand Down Expand Up @@ -712,3 +716,14 @@ spec:
- pass:
when: "true"
message: "ETCD status returned: healthy"
- textAnalyze:
checkName: Check if localhost resolves to 127.0.0.1
fileName: host-collectors/run-host/localhost-ips.txt
regex: 'localhost has address 127.0.0.1'
outcomes:
- fail:
when: "false"
message: "'localhost' does not resolve to 127.0.0.1 ip address"
- pass:
when: "true"
message: "'localhost' resolves to 127.0.0.1 ip address"

0 comments on commit 0153b39

Please sign in to comment.