Skip to content

Commit

Permalink
fix: use None cluster ip to expose cas ipfs pods directly
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Feb 9, 2024
1 parent d4762dd commit 938bc95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions operator/src/network/cas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ pub fn cas_ipfs_service_spec() -> ServiceSpec {
..Default::default()
}]),
selector: selector_labels(CAS_IPFS_APP),
cluster_ip: Some("None".to_owned()),
type_: Some("ClusterIP".to_owned()),
..Default::default()
}
Expand Down
4 changes: 2 additions & 2 deletions operator/src/network/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use kube::{
};
use opentelemetry::{global, KeyValue};
use rand::RngCore;
use tracing::{debug, error, info, trace, warn};
use tracing::{debug, error, info, warn};

use crate::{
labels::{managed_labels, MANAGED_BY_LABEL_SELECTOR},
Expand Down Expand Up @@ -791,7 +791,7 @@ async fn update_peer_status(
status.peers.push(Peer::Ipfs(info));
}
Err(err) => {
trace!(%err, "failed to get peer info for cas-ipfs");
warn!(%err, "failed to get peer info for cas-ipfs");
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Request {
"ownerReferences": []
},
"spec": {
"clusterIP": "None",
"ports": [
{
"name": "cas-ipfs",
Expand Down

0 comments on commit 938bc95

Please sign in to comment.