From af38409cff03db7feacc6588efccf9ae7eb6e89c Mon Sep 17 00:00:00 2001 From: David Estes <5317198+dav1do@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:58:23 -0600 Subject: [PATCH] chore: update ceramic one swarm port to 4101 and rpc port to 5101 (#194) * chore: update ceramic one swarm port to 4101 and rpc port to 5101 * chore: update CAS ipfs ports as well also renamed some constants * chore: fmt --- operator/src/network/cas.rs | 8 ++-- operator/src/network/ceramic.rs | 17 ++++---- operator/src/network/controller.rs | 37 ++++++++-------- operator/src/network/ipfs.rs | 20 +++++---- operator/src/network/testdata/ceramic_go_ss_1 | 8 ++-- .../src/network/testdata/ceramic_go_svc_1 | 4 +- operator/src/network/testdata/ceramic_ss_1 | 12 +++--- .../network/testdata/ceramic_ss_weighted_0 | 12 +++--- .../network/testdata/ceramic_ss_weighted_1 | 12 +++--- .../network/testdata/ceramic_ss_weighted_2 | 12 +++--- .../network/testdata/ceramic_ss_weighted_3 | 12 +++--- .../network/testdata/ceramic_ss_weighted_4 | 12 +++--- .../network/testdata/ceramic_ss_weighted_5 | 12 +++--- .../network/testdata/ceramic_ss_weighted_6 | 12 +++--- .../network/testdata/ceramic_ss_weighted_7 | 12 +++--- .../network/testdata/ceramic_ss_weighted_8 | 12 +++--- .../network/testdata/ceramic_ss_weighted_9 | 12 +++--- operator/src/network/testdata/ceramic_svc_1 | 4 +- .../network/testdata/ceramic_svc_weighted_0 | 4 +- .../network/testdata/ceramic_svc_weighted_1 | 4 +- .../network/testdata/ceramic_svc_weighted_2 | 4 +- .../network/testdata/ceramic_svc_weighted_3 | 4 +- .../network/testdata/ceramic_svc_weighted_4 | 4 +- .../network/testdata/ceramic_svc_weighted_5 | 4 +- .../network/testdata/ceramic_svc_weighted_6 | 4 +- .../network/testdata/ceramic_svc_weighted_7 | 4 +- .../network/testdata/ceramic_svc_weighted_8 | 4 +- .../network/testdata/ceramic_svc_weighted_9 | 4 +- .../network/testdata/ceramic_weighted_peers | 2 +- .../network/testdata/ceramics_weighted_status | 42 +++++++++---------- .../testdata/default_stubs/cas_ipfs_service | 4 +- .../default_stubs/cas_ipfs_stateful_set | 8 ++-- .../testdata/default_stubs/cas_stateful_set | 2 +- .../testdata/default_stubs/ceramic_service | 4 +- .../default_stubs/ceramic_stateful_set | 12 +++--- .../src/network/testdata/go_ipfs_configmap | 2 +- .../src/network/testdata/go_ipfs_configmap_1 | 2 +- .../testdata/go_ipfs_configmap_commands | 2 +- 38 files changed, 178 insertions(+), 172 deletions(-) diff --git a/operator/src/network/cas.rs b/operator/src/network/cas.rs index d378c250..c3a6d08a 100644 --- a/operator/src/network/cas.rs +++ b/operator/src/network/cas.rs @@ -20,7 +20,7 @@ use crate::{ network::{ ceramic::NetworkConfig, controller::{ - CAS_APP, CAS_IPFS_APP, CAS_IPFS_SERVICE_NAME, CAS_POSTGRES_APP, + CAS_APP, CAS_IPFS_APP, CAS_IPFS_SERVICE_NAME, CAS_IPFS_SERVICE_PORT, CAS_POSTGRES_APP, CAS_POSTGRES_SECRET_NAME, CAS_POSTGRES_SERVICE_NAME, CAS_SERVICE_NAME, DEFAULT_METRICS_PORT, GANACHE_APP, GANACHE_SERVICE_NAME, LOCALSTACK_APP, LOCALSTACK_SERVICE_NAME, NETWORK_DEV_MODE_RESOURCES, @@ -426,7 +426,7 @@ pub fn cas_stateful_set_spec( }, EnvVar { name: "IPFS_API_URL".to_owned(), - value: Some(format!("http://{CAS_IPFS_SERVICE_NAME}:5001")), + value: Some(format!("http://{CAS_IPFS_SERVICE_NAME}:{CAS_IPFS_SERVICE_PORT}")), ..Default::default() }, EnvVar { @@ -621,9 +621,9 @@ pub fn cas_ipfs_service_spec() -> ServiceSpec { ServiceSpec { ports: Some(vec![ServicePort { name: Some("cas-ipfs".to_owned()), - port: 5001, + port: CAS_IPFS_SERVICE_PORT, protocol: Some("TCP".to_owned()), - target_port: Some(IntOrString::Int(5001)), + target_port: Some(IntOrString::Int(CAS_IPFS_SERVICE_PORT)), ..Default::default() }]), selector: selector_labels(CAS_IPFS_APP), diff --git a/operator/src/network/ceramic.rs b/operator/src/network/ceramic.rs index 43b9390e..be8f8bdd 100644 --- a/operator/src/network/ceramic.rs +++ b/operator/src/network/ceramic.rs @@ -20,8 +20,8 @@ use crate::{ labels::{managed_labels, selector_labels}, network::{ controller::{ - CAS_SERVICE_NAME, CERAMIC_APP, CERAMIC_POSTGRES_SECRET_NAME, CERAMIC_SERVICE_API_PORT, - CERAMIC_SERVICE_IPFS_PORT, DEFAULT_METRICS_PORT, GANACHE_SERVICE_NAME, + CAS_SERVICE_NAME, CERAMIC_APP, CERAMIC_ONE_IPFS_PORT, CERAMIC_POSTGRES_SECRET_NAME, + CERAMIC_SERVICE_API_PORT, DEFAULT_METRICS_PORT, GANACHE_SERVICE_NAME, INIT_CONFIG_MAP_NAME, NETWORK_DEV_MODE_RESOURCES, NODE_INSPECTION_PORT, }, datadog::DataDogConfig, @@ -33,7 +33,10 @@ use crate::{ utils::override_and_sort_env_vars, }; -use super::{debug_mode_security_context, storage::PersistentStorageConfig}; +use super::{ + controller::CERAMIC_ONE_SWARM_PORT, debug_mode_security_context, + storage::PersistentStorageConfig, +}; pub fn config_maps( info: &CeramicInfo, @@ -115,13 +118,13 @@ pub fn service_spec() -> ServiceSpec { ..Default::default() }, ServicePort { - port: CERAMIC_SERVICE_IPFS_PORT, + port: CERAMIC_ONE_IPFS_PORT, name: Some("ipfs".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() }, ServicePort { - port: 4001, + port: CERAMIC_ONE_SWARM_PORT, name: Some("swarm-tcp".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() @@ -236,7 +239,7 @@ impl CeramicInfo { /// Determine the IPFS RPC address of a Ceramic peer pub fn ipfs_rpc_addr(&self, ns: &str, peer: i32) -> String { format!( - "http://{}-{peer}.{}.{ns}.svc.cluster.local:{CERAMIC_SERVICE_IPFS_PORT}", + "http://{}-{peer}.{}.{ns}.svc.cluster.local:{CERAMIC_ONE_IPFS_PORT}", self.stateful_set, self.service ) } @@ -360,7 +363,7 @@ pub fn stateful_set_spec(ns: &str, bundle: &CeramicBundle<'_>) -> StatefulSetSpe }, EnvVar { name: "CERAMIC_IPFS_HOST".to_owned(), - value: Some(format!("http://localhost:{CERAMIC_SERVICE_IPFS_PORT}")), + value: Some(format!("http://localhost:{CERAMIC_ONE_IPFS_PORT}")), ..Default::default() }, EnvVar { diff --git a/operator/src/network/controller.rs b/operator/src/network/controller.rs index 444fb051..067fbd0a 100644 --- a/operator/src/network/controller.rs +++ b/operator/src/network/controller.rs @@ -71,7 +71,8 @@ use crate::{ /// network. pub const PEERS_CONFIG_MAP_NAME: &str = "keramik-peers"; -pub const CERAMIC_SERVICE_IPFS_PORT: i32 = 5001; +pub const CERAMIC_ONE_SWARM_PORT: i32 = 4101; +pub const CERAMIC_ONE_IPFS_PORT: i32 = 5101; pub const CERAMIC_SERVICE_API_PORT: i32 = 7007; pub const CERAMIC_POSTGRES_SECRET_NAME: &str = "ceramic-postgres-auth"; @@ -80,7 +81,7 @@ pub const ADMIN_SECRET_NAME: &str = "ceramic-admin"; pub const CAS_SERVICE_NAME: &str = "cas"; pub const CAS_IPFS_SERVICE_NAME: &str = "cas-ipfs"; -pub const CAS_SERVICE_IPFS_PORT: i32 = 5001; +pub const CAS_IPFS_SERVICE_PORT: i32 = 5101; pub const CAS_POSTGRES_SERVICE_NAME: &str = "cas-postgres"; pub const CAS_POSTGRES_SECRET_NAME: &str = "postgres-auth"; pub const GANACHE_SERVICE_NAME: &str = "ganache"; @@ -890,7 +891,7 @@ async fn update_peer_status( let network_config: NetworkConfig = network.spec().into(); if network_config.network_type == NetworkType::Local { // CAS IPFS peer - let ipfs_rpc_addr = format!("http://{CAS_IPFS_SERVICE_NAME}-0.{CAS_IPFS_SERVICE_NAME}.{ns}.svc.cluster.local:{CAS_SERVICE_IPFS_PORT}"); + let ipfs_rpc_addr = format!("http://{CAS_IPFS_SERVICE_NAME}-0.{CAS_IPFS_SERVICE_NAME}.{ns}.svc.cluster.local:{CAS_IPFS_SERVICE_PORT}"); match cx.rpc_client.peer_info(&ipfs_rpc_addr).await { Ok(info) => { status.peers.push(Peer::Ipfs(info)); @@ -2275,7 +2276,7 @@ mod tests { - "env": [ - { - "name": "CERAMIC_ONE_BIND_ADDRESS", - - "value": "0.0.0.0:5001" + - "value": "0.0.0.0:5101" - }, - { - "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -2303,7 +2304,7 @@ mod tests { - }, - { - "name": "CERAMIC_ONE_SWARM_ADDRESSES", - - "value": "/ip4/0.0.0.0/tcp/4001" + - "value": "/ip4/0.0.0.0/tcp/4101" - }, - { - "name": "RUST_LOG", @@ -2427,7 +2428,7 @@ mod tests { - "env": [ - { - "name": "CERAMIC_ONE_BIND_ADDRESS", - - "value": "0.0.0.0:5001" + - "value": "0.0.0.0:5101" - }, - { - "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -2455,7 +2456,7 @@ mod tests { - }, - { - "name": "CERAMIC_ONE_SWARM_ADDRESSES", - - "value": "/ip4/0.0.0.0/tcp/4001" + - "value": "/ip4/0.0.0.0/tcp/4101" - }, - { - "name": "RUST_LOG", @@ -2584,7 +2585,7 @@ mod tests { - "env": [ - { - "name": "CERAMIC_ONE_BIND_ADDRESS", - - "value": "0.0.0.0:5001" + - "value": "0.0.0.0:5101" - }, - { - "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -2612,7 +2613,7 @@ mod tests { - }, - { - "name": "CERAMIC_ONE_SWARM_ADDRESSES", - - "value": "/ip4/0.0.0.0/tcp/4001" + - "value": "/ip4/0.0.0.0/tcp/4101" - }, - { - "name": "RUST_LOG", @@ -2749,7 +2750,7 @@ mod tests { "value": "0.0.0.0:9465" }, @@ -252,11 +256,19 @@ - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { + "name": "ENV_KEY_A", @@ -4185,7 +4186,7 @@ mod tests { - "env": [ - { - "name": "CERAMIC_ONE_BIND_ADDRESS", - - "value": "0.0.0.0:5001" + - "value": "0.0.0.0:5101" - }, - { - "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -4213,7 +4214,7 @@ mod tests { - }, - { - "name": "CERAMIC_ONE_SWARM_ADDRESSES", - - "value": "/ip4/0.0.0.0/tcp/4001" + - "value": "/ip4/0.0.0.0/tcp/4101" - }, - { - "name": "RUST_LOG", @@ -4547,7 +4548,7 @@ mod tests { { "mountPath": "/config", @@ -252,6 +268,10 @@ - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { + "name": "CERAMIC_ONE_TOKIO_CONSOLE", @@ -4599,7 +4600,7 @@ mod tests { --- original +++ modified @@ -69,6 +69,10 @@ - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { + "name": "CERAMIC_ONE_TOKIO_CONSOLE", @@ -4752,7 +4753,7 @@ mod tests { + "env": [ + { + "name": "CERAMIC_ONE_BIND_ADDRESS", - + "value": "0.0.0.0:5001" + + "value": "0.0.0.0:5101" + }, + { + "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -4780,7 +4781,7 @@ mod tests { + }, + { + "name": "CERAMIC_ONE_SWARM_ADDRESSES", - + "value": "/ip4/0.0.0.0/tcp/4001" + + "value": "/ip4/0.0.0.0/tcp/4101" + }, + { + "name": "RUST_LOG", @@ -4792,12 +4793,12 @@ mod tests { + "name": "ipfs-migration", + "ports": [ + { - + "containerPort": 4001, + + "containerPort": 4101, + "name": "swarm-tcp", + "protocol": "TCP" + }, + { - + "containerPort": 5001, + + "containerPort": 5101, + "name": "rpc", + "protocol": "TCP" + }, diff --git a/operator/src/network/ipfs.rs b/operator/src/network/ipfs.rs index 7c0c6228..b263a85f 100644 --- a/operator/src/network/ipfs.rs +++ b/operator/src/network/ipfs.rs @@ -11,7 +11,6 @@ use k8s_openapi::{ const IPFS_CONTAINER_NAME: &str = "ipfs"; const IPFS_STORE_DIR: &str = "/data/ipfs"; pub const IPFS_DATA_PV_CLAIM: &str = "ipfs-data"; -const IPFS_SERVICE_PORT: i32 = 5001; use crate::{ network::{ @@ -22,7 +21,10 @@ use crate::{ utils::override_and_sort_env_vars, }; -use super::debug_mode_security_context; +use super::{ + controller::{CERAMIC_ONE_IPFS_PORT, CERAMIC_ONE_SWARM_PORT}, + debug_mode_security_context, +}; /// Unique identifying information about this IPFS spec. #[derive(Debug, Clone)] @@ -172,7 +174,7 @@ impl RustIpfsConfig { }, EnvVar { name: "CERAMIC_ONE_BIND_ADDRESS".to_owned(), - value: Some(format!("0.0.0.0:{IPFS_SERVICE_PORT}")), + value: Some(format!("0.0.0.0:{CERAMIC_ONE_IPFS_PORT}")), ..Default::default() }, EnvVar { @@ -182,7 +184,7 @@ impl RustIpfsConfig { }, EnvVar { name: "CERAMIC_ONE_SWARM_ADDRESSES".to_owned(), - value: Some("/ip4/0.0.0.0/tcp/4001".to_owned()), + value: Some(format!("/ip4/0.0.0.0/tcp/{CERAMIC_ONE_SWARM_PORT}")), ..Default::default() }, EnvVar { @@ -225,13 +227,13 @@ impl RustIpfsConfig { // Construct the set of ports let mut ports = vec![ ContainerPort { - container_port: 4001, + container_port: CERAMIC_ONE_SWARM_PORT, name: Some("swarm-tcp".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() }, ContainerPort { - container_port: IPFS_SERVICE_PORT, + container_port: CERAMIC_ONE_IPFS_PORT, name: Some("rpc".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() @@ -361,7 +363,7 @@ ipfs config --json Addresses.Gateway '[]' # Enable pubsub ipfs config --json PubSub.Enabled true # Only listen on specific tcp address as nothing else is exposed -ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/tcp/4001"]' +ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/tcp/4101"]' # Set explicit resource manager limits as Kubo computes them based off # the k8s node resources and not the pods limits. ipfs config Swarm.ResourceMgr.MaxMemory '400 MB' @@ -415,13 +417,13 @@ ipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000 name: IPFS_CONTAINER_NAME.to_owned(), ports: Some(vec![ ContainerPort { - container_port: 4001, + container_port: CERAMIC_ONE_SWARM_PORT, name: Some("swarm-tcp".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() }, ContainerPort { - container_port: IPFS_SERVICE_PORT, + container_port: CERAMIC_ONE_IPFS_PORT, name: Some("rpc".to_owned()), protocol: Some("TCP".to_owned()), ..Default::default() diff --git a/operator/src/network/testdata/ceramic_go_ss_1 b/operator/src/network/testdata/ceramic_go_ss_1 index a1cb5df1..ccf5d916 100644 --- a/operator/src/network/testdata/ceramic_go_ss_1 +++ b/operator/src/network/testdata/ceramic_go_ss_1 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -223,12 +223,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -290,7 +290,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_go_svc_1 b/operator/src/network/testdata/ceramic_go_svc_1 index 19f96918..d4d5fe5c 100644 --- a/operator/src/network/testdata/ceramic_go_svc_1 +++ b/operator/src/network/testdata/ceramic_go_svc_1 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_ss_1 b/operator/src/network/testdata/ceramic_ss_1 index 38ff9a10..aa29ec1c 100644 --- a/operator/src/network/testdata/ceramic_ss_1 +++ b/operator/src/network/testdata/ceramic_ss_1 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_0 b/operator/src/network/testdata/ceramic_ss_weighted_0 index e1bb73ae..8cc42df9 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_0 +++ b/operator/src/network/testdata/ceramic_ss_weighted_0 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_1 b/operator/src/network/testdata/ceramic_ss_weighted_1 index 6bde9635..9ba79863 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_1 +++ b/operator/src/network/testdata/ceramic_ss_weighted_1 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_2 b/operator/src/network/testdata/ceramic_ss_weighted_2 index 379b45c7..9fda600b 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_2 +++ b/operator/src/network/testdata/ceramic_ss_weighted_2 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_3 b/operator/src/network/testdata/ceramic_ss_weighted_3 index f0a25ff8..688cc72b 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_3 +++ b/operator/src/network/testdata/ceramic_ss_weighted_3 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_4 b/operator/src/network/testdata/ceramic_ss_weighted_4 index b9b2620d..6e2ff272 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_4 +++ b/operator/src/network/testdata/ceramic_ss_weighted_4 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_5 b/operator/src/network/testdata/ceramic_ss_weighted_5 index 7174964e..3fa2e011 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_5 +++ b/operator/src/network/testdata/ceramic_ss_weighted_5 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_6 b/operator/src/network/testdata/ceramic_ss_weighted_6 index 72714642..12fbd68c 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_6 +++ b/operator/src/network/testdata/ceramic_ss_weighted_6 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_7 b/operator/src/network/testdata/ceramic_ss_weighted_7 index 6beee08d..1bd6720b 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_7 +++ b/operator/src/network/testdata/ceramic_ss_weighted_7 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_8 b/operator/src/network/testdata/ceramic_ss_weighted_8 index 3daa5bac..50973496 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_8 +++ b/operator/src/network/testdata/ceramic_ss_weighted_8 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_ss_weighted_9 b/operator/src/network/testdata/ceramic_ss_weighted_9 index 446a5c48..52b5fb12 100644 --- a/operator/src/network/testdata/ceramic_ss_weighted_9 +++ b/operator/src/network/testdata/ceramic_ss_weighted_9 @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/ceramic_svc_1 b/operator/src/network/testdata/ceramic_svc_1 index 19f96918..d4d5fe5c 100644 --- a/operator/src/network/testdata/ceramic_svc_1 +++ b/operator/src/network/testdata/ceramic_svc_1 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_0 b/operator/src/network/testdata/ceramic_svc_weighted_0 index 275f8222..93a5168a 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_0 +++ b/operator/src/network/testdata/ceramic_svc_weighted_0 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_1 b/operator/src/network/testdata/ceramic_svc_weighted_1 index 19f96918..d4d5fe5c 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_1 +++ b/operator/src/network/testdata/ceramic_svc_weighted_1 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_2 b/operator/src/network/testdata/ceramic_svc_weighted_2 index 5a649e8b..2710ca46 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_2 +++ b/operator/src/network/testdata/ceramic_svc_weighted_2 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_3 b/operator/src/network/testdata/ceramic_svc_weighted_3 index 43a1a970..1056510e 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_3 +++ b/operator/src/network/testdata/ceramic_svc_weighted_3 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_4 b/operator/src/network/testdata/ceramic_svc_weighted_4 index 0065263e..b0eb9231 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_4 +++ b/operator/src/network/testdata/ceramic_svc_weighted_4 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_5 b/operator/src/network/testdata/ceramic_svc_weighted_5 index c6f0c4fb..7ec4a387 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_5 +++ b/operator/src/network/testdata/ceramic_svc_weighted_5 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_6 b/operator/src/network/testdata/ceramic_svc_weighted_6 index 791da656..450d02b3 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_6 +++ b/operator/src/network/testdata/ceramic_svc_weighted_6 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_7 b/operator/src/network/testdata/ceramic_svc_weighted_7 index cf7835b4..7eafdf50 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_7 +++ b/operator/src/network/testdata/ceramic_svc_weighted_7 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_8 b/operator/src/network/testdata/ceramic_svc_weighted_8 index 55d9dc85..ab6c8d5c 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_8 +++ b/operator/src/network/testdata/ceramic_svc_weighted_8 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_svc_weighted_9 b/operator/src/network/testdata/ceramic_svc_weighted_9 index 292afd74..78972610 100644 --- a/operator/src/network/testdata/ceramic_svc_weighted_9 +++ b/operator/src/network/testdata/ceramic_svc_weighted_9 @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/ceramic_weighted_peers b/operator/src/network/testdata/ceramic_weighted_peers index 1c8e7566..e07bbc64 100644 --- a/operator/src/network/testdata/ceramic_weighted_peers +++ b/operator/src/network/testdata/ceramic_weighted_peers @@ -8,7 +8,7 @@ Request { body: { "apiVersion": "v1", "data": { - "peers.json": "[{\"ceramic\":{\"peerId\":\"peer_id_0\",\"ipfsRpcAddr\":\"http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_1\",\"ipfsRpcAddr\":\"http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_2\",\"ipfsRpcAddr\":\"http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_3\",\"ipfsRpcAddr\":\"http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_4\",\"ipfsRpcAddr\":\"http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_5\",\"ipfsRpcAddr\":\"http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_6\",\"ipfsRpcAddr\":\"http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_7\",\"ipfsRpcAddr\":\"http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_8\",\"ipfsRpcAddr\":\"http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_9\",\"ipfsRpcAddr\":\"http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_10\",\"ipfsRpcAddr\":\"http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_11\",\"ipfsRpcAddr\":\"http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_12\",\"ipfsRpcAddr\":\"http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_13\",\"ipfsRpcAddr\":\"http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_14\",\"ipfsRpcAddr\":\"http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_15\",\"ipfsRpcAddr\":\"http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_16\",\"ipfsRpcAddr\":\"http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_17\",\"ipfsRpcAddr\":\"http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_18\",\"ipfsRpcAddr\":\"http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_19\",\"ipfsRpcAddr\":\"http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:5001\",\"ceramicAddr\":\"http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ipfs\":{\"peerId\":\"cas_peer_id\",\"ipfsRpcAddr\":\"http://cas-ipfs-0.cas-ipfs.keramik-test.svc.cluster.local:5001\",\"p2pAddrs\":[]}}]" + "peers.json": "[{\"ceramic\":{\"peerId\":\"peer_id_0\",\"ipfsRpcAddr\":\"http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_1\",\"ipfsRpcAddr\":\"http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_2\",\"ipfsRpcAddr\":\"http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_3\",\"ipfsRpcAddr\":\"http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_4\",\"ipfsRpcAddr\":\"http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_5\",\"ipfsRpcAddr\":\"http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_6\",\"ipfsRpcAddr\":\"http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_7\",\"ipfsRpcAddr\":\"http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_8\",\"ipfsRpcAddr\":\"http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_9\",\"ipfsRpcAddr\":\"http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_10\",\"ipfsRpcAddr\":\"http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_11\",\"ipfsRpcAddr\":\"http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_12\",\"ipfsRpcAddr\":\"http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_13\",\"ipfsRpcAddr\":\"http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_14\",\"ipfsRpcAddr\":\"http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_15\",\"ipfsRpcAddr\":\"http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_16\",\"ipfsRpcAddr\":\"http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_17\",\"ipfsRpcAddr\":\"http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_18\",\"ipfsRpcAddr\":\"http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ceramic\":{\"peerId\":\"peer_id_19\",\"ipfsRpcAddr\":\"http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:5101\",\"ceramicAddr\":\"http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:7007\",\"p2pAddrs\":[]}},{\"ipfs\":{\"peerId\":\"cas_peer_id\",\"ipfsRpcAddr\":\"http://cas-ipfs-0.cas-ipfs.keramik-test.svc.cluster.local:5101\",\"p2pAddrs\":[]}}]" }, "kind": "ConfigMap", "metadata": { diff --git a/operator/src/network/testdata/ceramics_weighted_status b/operator/src/network/testdata/ceramics_weighted_status index 2b97be40..de30b02f 100644 --- a/operator/src/network/testdata/ceramics_weighted_status +++ b/operator/src/network/testdata/ceramics_weighted_status @@ -13,7 +13,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-0.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_0" } @@ -21,7 +21,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-1.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_1" } @@ -29,7 +29,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-2.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_2" } @@ -37,7 +37,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-3.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_3" } @@ -45,7 +45,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-4.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_4" } @@ -53,7 +53,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-5.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_5" } @@ -61,7 +61,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-6.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_6" } @@ -69,7 +69,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-7.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_7" } @@ -77,7 +77,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-8.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_8" } @@ -85,7 +85,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-0-9.ceramic-0.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_9" } @@ -93,7 +93,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-1-0.ceramic-1.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_10" } @@ -101,7 +101,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-1-1.ceramic-1.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_11" } @@ -109,7 +109,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-2-0.ceramic-2.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_12" } @@ -117,7 +117,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-3-0.ceramic-3.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_13" } @@ -125,7 +125,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-4-0.ceramic-4.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_14" } @@ -133,7 +133,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-5-0.ceramic-5.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_15" } @@ -141,7 +141,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-6-0.ceramic-6.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_16" } @@ -149,7 +149,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-7-0.ceramic-7.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_17" } @@ -157,7 +157,7 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-8-0.ceramic-8.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_18" } @@ -165,14 +165,14 @@ Request { { "ceramic": { "ceramicAddr": "http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:7007", - "ipfsRpcAddr": "http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://ceramic-9-0.ceramic-9.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "peer_id_19" } }, { "ipfs": { - "ipfsRpcAddr": "http://cas-ipfs-0.cas-ipfs.keramik-test.svc.cluster.local:5001", + "ipfsRpcAddr": "http://cas-ipfs-0.cas-ipfs.keramik-test.svc.cluster.local:5101", "p2pAddrs": [], "peerId": "cas_peer_id" } diff --git a/operator/src/network/testdata/default_stubs/cas_ipfs_service b/operator/src/network/testdata/default_stubs/cas_ipfs_service index 9a682483..3a71ad4e 100644 --- a/operator/src/network/testdata/default_stubs/cas_ipfs_service +++ b/operator/src/network/testdata/default_stubs/cas_ipfs_service @@ -20,9 +20,9 @@ Request { "ports": [ { "name": "cas-ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP", - "targetPort": 5001 + "targetPort": 5101 } ], "selector": { diff --git a/operator/src/network/testdata/default_stubs/cas_ipfs_stateful_set b/operator/src/network/testdata/default_stubs/cas_ipfs_stateful_set index 574e51be..c70dbf3b 100644 --- a/operator/src/network/testdata/default_stubs/cas_ipfs_stateful_set +++ b/operator/src/network/testdata/default_stubs/cas_ipfs_stateful_set @@ -38,7 +38,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -66,7 +66,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -78,12 +78,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, diff --git a/operator/src/network/testdata/default_stubs/cas_stateful_set b/operator/src/network/testdata/default_stubs/cas_stateful_set index cbe4cf4b..72f4f9c6 100644 --- a/operator/src/network/testdata/default_stubs/cas_stateful_set +++ b/operator/src/network/testdata/default_stubs/cas_stateful_set @@ -249,7 +249,7 @@ Request { }, { "name": "IPFS_API_URL", - "value": "http://cas-ipfs:5001" + "value": "http://cas-ipfs:5101" }, { "name": "IPFS_API_TIMEOUT", diff --git a/operator/src/network/testdata/default_stubs/ceramic_service b/operator/src/network/testdata/default_stubs/ceramic_service index 275f8222..93a5168a 100644 --- a/operator/src/network/testdata/default_stubs/ceramic_service +++ b/operator/src/network/testdata/default_stubs/ceramic_service @@ -26,12 +26,12 @@ Request { }, { "name": "ipfs", - "port": 5001, + "port": 5101, "protocol": "TCP" }, { "name": "swarm-tcp", - "port": 4001, + "port": 4101, "protocol": "TCP" } ], diff --git a/operator/src/network/testdata/default_stubs/ceramic_stateful_set b/operator/src/network/testdata/default_stubs/ceramic_stateful_set index 89eaae8d..a312d467 100644 --- a/operator/src/network/testdata/default_stubs/ceramic_stateful_set +++ b/operator/src/network/testdata/default_stubs/ceramic_stateful_set @@ -55,7 +55,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", @@ -221,7 +221,7 @@ Request { "env": [ { "name": "CERAMIC_ONE_BIND_ADDRESS", - "value": "0.0.0.0:5001" + "value": "0.0.0.0:5101" }, { "name": "CERAMIC_ONE_KADEMLIA_PARALLELISM", @@ -249,7 +249,7 @@ Request { }, { "name": "CERAMIC_ONE_SWARM_ADDRESSES", - "value": "/ip4/0.0.0.0/tcp/4001" + "value": "/ip4/0.0.0.0/tcp/4101" }, { "name": "RUST_LOG", @@ -261,12 +261,12 @@ Request { "name": "ipfs", "ports": [ { - "containerPort": 4001, + "containerPort": 4101, "name": "swarm-tcp", "protocol": "TCP" }, { - "containerPort": 5001, + "containerPort": 5101, "name": "rpc", "protocol": "TCP" }, @@ -323,7 +323,7 @@ Request { }, { "name": "CERAMIC_IPFS_HOST", - "value": "http://localhost:5001" + "value": "http://localhost:5101" }, { "name": "CERAMIC_LOG_LEVEL", diff --git a/operator/src/network/testdata/go_ipfs_configmap b/operator/src/network/testdata/go_ipfs_configmap index 7f91af2d..0c1faabe 100644 --- a/operator/src/network/testdata/go_ipfs_configmap +++ b/operator/src/network/testdata/go_ipfs_configmap @@ -8,7 +8,7 @@ Request { body: { "apiVersion": "v1", "data": { - "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4001\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n" + "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4101\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n" }, "kind": "ConfigMap", "metadata": { diff --git a/operator/src/network/testdata/go_ipfs_configmap_1 b/operator/src/network/testdata/go_ipfs_configmap_1 index 90bc66ed..b9d4cdec 100644 --- a/operator/src/network/testdata/go_ipfs_configmap_1 +++ b/operator/src/network/testdata/go_ipfs_configmap_1 @@ -8,7 +8,7 @@ Request { body: { "apiVersion": "v1", "data": { - "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4001\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n" + "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4101\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n" }, "kind": "ConfigMap", "metadata": { diff --git a/operator/src/network/testdata/go_ipfs_configmap_commands b/operator/src/network/testdata/go_ipfs_configmap_commands index f12e4180..4b0465dc 100644 --- a/operator/src/network/testdata/go_ipfs_configmap_commands +++ b/operator/src/network/testdata/go_ipfs_configmap_commands @@ -8,7 +8,7 @@ Request { body: { "apiVersion": "v1", "data": { - "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4001\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n", + "001-config.sh": "#!/bin/sh\nset -ex\n# Do not bootstrap against public nodes\nipfs bootstrap rm all\n# Do not sticky peer with ceramic specific peers\n# We want an isolated network\nipfs config --json Peering.Peers '[]'\n# Disable the gateway\nipfs config --json Addresses.Gateway '[]'\n# Enable pubsub\nipfs config --json PubSub.Enabled true\n# Only listen on specific tcp address as nothing else is exposed\nipfs config --json Addresses.Swarm '[\"/ip4/0.0.0.0/tcp/4101\"]'\n# Set explicit resource manager limits as Kubo computes them based off\n# the k8s node resources and not the pods limits.\nipfs config Swarm.ResourceMgr.MaxMemory '400 MB'\nipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000\n", "002-config.sh": "#!/bin/sh\nset -ex\nipfs config Pubsub.SeenMessagesTTL 10m\nipfs config --json Swarm.RelayClient.Enabled false" }, "kind": "ConfigMap",