Skip to content

Commit

Permalink
Added cni plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Nov 24, 2023
1 parent 6839acc commit a17cfe7
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 8 deletions.
173 changes: 171 additions & 2 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ sysinfo = "0.29.10"
chrono = "0.4.31"
base64 = "0.21.5"
colored = "2.0.4"
cni-plugin = "0.2.1"
fs2 = "0.4.3"
log = "0.4.20"
1 change: 0 additions & 1 deletion manifests/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
labels:
app: coredns
spec:
hostNetwork: true
volumes:
- name: skate
hostPath:
Expand Down
4 changes: 0 additions & 4 deletions src/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ async fn setup_networking(conn: &SshClient, cluster_conf: &Cluster, node: &Node,
_ => {}
}

let cmd = "sudo bash -c \"sed -i 's/#DNSStubListener=yes$/DNSStubListener=no/' /etc/systemd/resolved.conf && sudo systemctl restart systemd-resolved\"";
// don't care about result
let _ = conn.execute(cmd).await;

let cmd = "sudo podman pull ghcr.io/skateco/coredns";
conn.execute(cmd).await?;

Expand Down
Loading

0 comments on commit a17cfe7

Please sign in to comment.