Skip to content

Commit

Permalink
(BOUN-984) remove BN control-plane service and API BN usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-komarevskiy committed Jan 5, 2024
1 parent 97416c3 commit d8e211d
Show file tree
Hide file tree
Showing 148 changed files with 234 additions and 4,684 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ prestorecon.o
**/bin/boundary-node-prober
**/bin/ic-balance-exporter

# Boundary node control plane binary
boundary-node-control-plane

# Boundary node prober binary
boundary-node-prober

Expand Down
129 changes: 12 additions & 117 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ members = [
"rs/boundary_node/certificate_issuance/certificate_issuer",
"rs/boundary_node/certificate_issuance/certificate_orchestrator",
"rs/boundary_node/certificate_issuance/certificate_syncer",
"rs/boundary_node/control_plane",
"rs/boundary_node/denylist_updater",
"rs/boundary_node/discower_bowndary",
"rs/boundary_node/ic_balance_exporter",
Expand Down
2 changes: 0 additions & 2 deletions gitlab-ci/src/std-fs-check/std-fs-whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ artifact_pool/src/backup.rs: fs,
artifact_pool/src/backup.rs:use std::{
artifact_pool/src/lib.rs:use std::fs;
bitcoin/adapter/src/cli.rs:use std::{fs::File, io, path::PathBuf};
boundary_node/control_plane/src/main.rs: fs::File,
boundary_node/control_plane/src/main.rs:use std::{
boundary_node/denylist_updater/src/bin/denylist-encoder.rs: fs::File,
boundary_node/denylist_updater/src/bin/denylist-encoder.rs:use std::{
boundary_node/ic_balance_exporter/src/main.rs: fs::{self, File},
Expand Down
1 change: 0 additions & 1 deletion ic-os/boundary-api-guestos/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def image_deps(mode):
":rootfs-tree.tar": "/",

# additional files to install
"//publish/binaries:boundary-node-control-plane": "/opt/ic/bin/boundary-node-control-plane:0755",
"//publish/binaries:ic-registry-replicator": "/opt/ic/bin/ic-registry-replicator:0755",
"//publish/binaries:ic-boundary": "/opt/ic/bin/ic-boundary:0755",
},
Expand Down
1 change: 0 additions & 1 deletion ic-os/boundary-api-guestos/rootfs/etc/nftables.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ define icmp_v6_out_types_accept = {

define ipv6_monitoring_tcp_ports = {
9100, # node-exporter
9312, # control-plane
9316, # vector-nginx
9317, # vector
9319, # process-exporter
Expand Down

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions ic-os/boundary-api-guestos/rootfs/etc/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,46 +198,6 @@ inputs = ["nginx_access_metrics", "nginx_error_metrics"]
address = "${NGINX_PROMETHUS_ADDR}"
default_namespace = "nginx"

# control-plane

[sources.control_plane]
type = "journald"
include_units = ["control-plane"]

[transforms.control_plane_json]
type = "remap"
inputs = ["control_plane"]
source = """
preserved_fields = {}; preserved_keys = ["host"]
for_each(preserved_keys) -> |_, k| {
v = get!(., [k])
if v != null {
preserved_fields = set!(preserved_fields, [k], v)
}
}
. = parse_json!(.message)
.@timestamp = to_timestamp!(.timestamp, unit: "milliseconds")
.@timestamp = to_unix_timestamp(.@timestamp, unit: "milliseconds")
del(.timestamp)
. = merge(., preserved_fields)
"""

[sinks.elasticsearch_control_plane]
type = "elasticsearch"
inputs = ["control_plane_json"]
endpoint = "${ELASTICSEARCH_URL}"
mode = "bulk"

[sinks.elasticsearch_control_plane.bulk]
index = "boundary-node-control-plane-%Y.%m.%d"

[sinks.elasticsearch_control_plane.tls]
verify_certificate = false

# danted (socks proxy)

[sources.danted]
Expand Down
Loading

0 comments on commit d8e211d

Please sign in to comment.