From f5ffd95a39c0e49f6a9845fa9f74ca6d6cda7462 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 22 Oct 2020 14:02:36 +0200 Subject: [PATCH] docs: update all netpol comments to reflect suggestions --- jupyterhub/templates/hub/netpol.yaml | 2 +- jupyterhub/templates/proxy/autohttps/netpol.yaml | 8 ++++---- jupyterhub/templates/proxy/netpol.yaml | 8 ++++---- jupyterhub/templates/singleuser/netpol.yaml | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/jupyterhub/templates/hub/netpol.yaml b/jupyterhub/templates/hub/netpol.yaml index e2b586b9a7..4938e70b0c 100644 --- a/jupyterhub/templates/hub/netpol.yaml +++ b/jupyterhub/templates/hub/netpol.yaml @@ -23,7 +23,7 @@ spec: # "sources"/"destinations" of four different kinds. # - podSelector - targets pods with a certain label in the same namespace as the NetworkPolicy # - namespaceSelector - targets all pods running in namespaces with a certain label - # - namespaceSelector and podSelector - targets pods with a certain label within namespaces with a certain label + # - namespaceSelector and podSelector - targets pods with a certain label running in namespaces with a certain label # - ipBlock - targets network traffic from/to a set of IP address ranges # # Read more at: https://kubernetes.io/docs/concepts/services-networking/network-policies/#behavior-of-to-and-from-selectors diff --git a/jupyterhub/templates/proxy/autohttps/netpol.yaml b/jupyterhub/templates/proxy/autohttps/netpol.yaml index 8cac197dee..6d7de8b92a 100644 --- a/jupyterhub/templates/proxy/autohttps/netpol.yaml +++ b/jupyterhub/templates/proxy/autohttps/netpol.yaml @@ -21,11 +21,11 @@ spec: # # 1. You can provide "from"/"to" rules that provide access either ports or a # subset of ports. - # 2. You can for each "form"/"to" rule provide any number of + # 2. You can for each "from"/"to" rule provide any number of # "sources"/"destinations" of four different kinds. - # - podSelector - targets pods with a certain label in the NetworkPolicy's namespace - # - namespaceSelector - targets all pods within namespaces with a certain label - # - namespaceSelector and podSelector - targets pods with a certain label within namespaces with a certain label + # - podSelector - targets pods with a certain label in the same namespace as the NetworkPolicy + # - namespaceSelector - targets all pods running in namespaces with a certain label + # - namespaceSelector and podSelector - targets pods with a certain label running in namespaces with a certain label # - ipBlock - targets network traffic from/to a set of IP address ranges # # Read more at: https://kubernetes.io/docs/concepts/services-networking/network-policies/#behavior-of-to-and-from-selectors diff --git a/jupyterhub/templates/proxy/netpol.yaml b/jupyterhub/templates/proxy/netpol.yaml index 4894fe51d6..fbab69d74f 100644 --- a/jupyterhub/templates/proxy/netpol.yaml +++ b/jupyterhub/templates/proxy/netpol.yaml @@ -23,11 +23,11 @@ spec: # # 1. You can provide "from"/"to" rules that provide access either ports or a # subset of ports. - # 2. You can for each "form"/"to" rule provide any number of + # 2. You can for each "from"/"to" rule provide any number of # "sources"/"destinations" of four different kinds. - # - podSelector - targets pods with a certain label in the NetworkPolicy's namespace - # - namespaceSelector - targets all pods within namespaces with a certain label - # - namespaceSelector and podSelector - targets pods with a certain label within namespaces with a certain label + # - podSelector - targets pods with a certain label in the same namespace as the NetworkPolicy + # - namespaceSelector - targets all pods running in namespaces with a certain label + # - namespaceSelector and podSelector - targets pods with a certain label running in namespaces with a certain label # - ipBlock - targets network traffic from/to a set of IP address ranges # # Read more at: https://kubernetes.io/docs/concepts/services-networking/network-policies/#behavior-of-to-and-from-selectors diff --git a/jupyterhub/templates/singleuser/netpol.yaml b/jupyterhub/templates/singleuser/netpol.yaml index 5fbd17b949..1c24e4888c 100644 --- a/jupyterhub/templates/singleuser/netpol.yaml +++ b/jupyterhub/templates/singleuser/netpol.yaml @@ -20,11 +20,11 @@ spec: # # 1. You can provide "from"/"to" rules that provide access either ports or a # subset of ports. - # 2. You can for each "form"/"to" rule provide any number of + # 2. You can for each "from"/"to" rule provide any number of # "sources"/"destinations" of four different kinds. - # - podSelector - targets pods with a certain label in the NetworkPolicy's namespace - # - namespaceSelector - targets all pods within namespaces with a certain label - # - namespaceSelector and podSelector - targets pods with a certain label within namespaces with a certain label + # - podSelector - targets pods with a certain label in the same namespace as the NetworkPolicy + # - namespaceSelector - targets all pods running in namespaces with a certain label + # - namespaceSelector and podSelector - targets pods with a certain label running in namespaces with a certain label # - ipBlock - targets network traffic from/to a set of IP address ranges # # Read more at: https://kubernetes.io/docs/concepts/services-networking/network-policies/#behavior-of-to-and-from-selectors