From 028216021f4cacf49ca8aea569807ea312db509b Mon Sep 17 00:00:00 2001 From: Marc CARRE Date: Fri, 25 Nov 2016 12:19:53 +0000 Subject: [PATCH 1/2] Fixed formatting of documentation about logging of connection blocked by Weave NPC. --- site/kube-addon.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/kube-addon.md b/site/kube-addon.md index 935f28c1..ca8587dc 100644 --- a/site/kube-addon.md +++ b/site/kube-addon.md @@ -68,6 +68,7 @@ definition](http://kubernetes.io/docs/api-reference/extensions/v1beta1/definitio ### Blocked connections If you suspect that legitimate traffic is being blocked by the Weave Network Policy Controller, you may want to look at the `weave-npc` container's logs: + ``` $ kubectl logs $(kubectl get pods --all-namespaces | grep weave-net | awk '{print $2}') -n kube-system weave-npc ``` @@ -79,9 +80,10 @@ Any time the Weave Network Policy Controller blocks a connection, it will log de * destination IP and port, as per the below example: + ``` -time="yyyy-MM-ddTHH:mm:ssZ" level=warning msg="TCP connection from 10.32.0.7:56648 to 10.32.0.11:80 blocked by Weave NPC. -time="yyyy-MM-ddTHH:mm:ssZ" level=warning msg="UDP connection from 10.32.0.7:56648 to 10.32.0.11:80 blocked by Weave NPC. +TCP connection from 10.32.0.7:56648 to 10.32.0.11:80 blocked by Weave NPC. +UDP connection from 10.32.0.7:56648 to 10.32.0.11:80 blocked by Weave NPC. ``` ## Changing Configuration Options From 5f031453d35543026a5f09a9120fe1045265cf00 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 25 Nov 2016 16:55:22 +0000 Subject: [PATCH 2/2] Remove backticks which are tripping up the markdown renderer --- site/kube-addon.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/site/kube-addon.md b/site/kube-addon.md index ca8587dc..a01f31a3 100644 --- a/site/kube-addon.md +++ b/site/kube-addon.md @@ -23,9 +23,8 @@ network. > alternatively if you are using the older cluster set-up scripts from > the Kubernetes repo, you can use > -> ``` -> NETWORK_PROVIDER=cni cluster/kube-up.sh -> ``` +> +> NETWORK_PROVIDER=cni cluster/kube-up.sh NB If you were previously using the [Weave CNI driver](/site/cni-plugin.md) from a full install of Weave Net with your