Skip to content

Commit 2d7446c

Browse files
allowing for independent configuration of the monitoring health check. (#9)
1 parent 2e128c2 commit 2d7446c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cloud-config/init.tpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ write_files:
1515
monitoring_interface:
1616
name: ${mon_int}
1717
wait: true
18-
%{ if mon_subnet != "" && mon_gateway != "" ~}
18+
%{ if health_port != "" ~}
1919
health_check:
2020
port: ${health_port}
21+
%{ endif ~}
22+
%{ if mon_subnet != "" }
2123
subnet: ${mon_subnet}
24+
%{ endif ~}
25+
%{ if mon_gateway != "" }
2226
gateway: ${mon_gateway}
2327
%{ endif ~}
2428
kubernetes:
@@ -43,7 +47,6 @@ runcmd:
4347
- |
4448
echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "gcp","cloud_enrichment.bucket_name": "${bucket_name}"}' | corelightctl sensor cfg put
4549
%{ endif ~}
46-
# TODO: Remove after Software Sensor v27.14.0 is released
4750
%{ if enrichment_enabled ~}
4851
- /usr/local/bin/kubectl rollout restart deployment -n corelight-sensor sensor-core
4952
%{ endif ~}

0 commit comments

Comments
 (0)