Skip to content

Commit

Permalink
doc: Specify CILIUM_NAMESPACE for Hubble installation instruction
Browse files Browse the repository at this point in the history
This makes it easier to follow the instructions, especially for GKE which
uses cilium namespace instead of kube-system.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent authored and borkmann committed Jun 18, 2020
1 parent d4ea2db commit 575bff8
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 13 deletions.
1 change: 1 addition & 0 deletions Documentation/gettingstarted/aws-eni.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Deploy Cilium release via Helm:

.. include:: aws-create-nodegroup.rst
.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

.. _eni_limitations:
Expand Down
1 change: 1 addition & 0 deletions Documentation/gettingstarted/cni-chaining-aws-cni.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ If you are unsure if a pod is managed by Cilium or not, run ``kubectl get cep``
in the respective namespace and see if the pod is listed.

.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

1 change: 1 addition & 0 deletions Documentation/gettingstarted/cni-chaining-azure-cni.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ If you are unsure if a pod is managed by Cilium or not, run ``kubectl get cep``
in the respective namespace and see if the pod is listed.

.. include:: k8s-install-azure-cni-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

1 change: 1 addition & 0 deletions Documentation/gettingstarted/cni-chaining-calico.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ Deploy Cilium release via Helm:
them.

.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

1 change: 1 addition & 0 deletions Documentation/gettingstarted/cni-chaining-weave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Deploy Cilium release via Helm:
them.

.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst


13 changes: 0 additions & 13 deletions Documentation/gettingstarted/hubble-enable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ for cloud native workloads. It is built on top of Cilium and eBPF to enable
deep visibility into the communication and behavior of services as well as the
networking infrastructure in a completely transparent manner.

* Specify the namespace in which Cilium is installed as ``CILIUM_NAMESPACE``
environment variable. Subsequent commands reference this environment variable.

.. parsed-literal::
export CILIUM_NAMESPACE=kube-system
.. note::

Cilium is typically installed in the ``kube-system`` namespace, but there are
a few exceptions such as GKE which install Cilium in a dedicated ``cilium``
namespace.

* Hubble can be configured to be in **local mode** or **distributed mode (beta)**.

.. tabs::
Expand Down
1 change: 1 addition & 0 deletions Documentation/gettingstarted/k8s-install-aks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ To verify, you should see AKS in the name of the nodes when you run:
.. include:: k8s-install-azure-cni-steps.rst

.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

1 change: 1 addition & 0 deletions Documentation/gettingstarted/k8s-install-azure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Deploy Cilium release via Helm:
--set global.nodeinit.enabled=true
.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

.. _azure_limitations:
Expand Down
1 change: 1 addition & 0 deletions Documentation/gettingstarted/k8s-install-eks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ Deploy Cilium release via Helm:

.. include:: aws-create-nodegroup.rst
.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst
1 change: 1 addition & 0 deletions Documentation/gettingstarted/k8s-install-gke.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@ to the cluster. The NodeInit DaemonSet will perform the following actions:

.. include:: k8s-install-restart-pods.rst
.. include:: k8s-install-gke-validate.rst
.. include:: namespace-cilium.rst
.. include:: hubble-enable.rst

1 change: 1 addition & 0 deletions Documentation/gettingstarted/kind.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Install Cilium release via Helm:
--set global.pullPolicy=IfNotPresent
.. include:: k8s-install-validate.rst
.. include:: namespace-kube-system.rst
.. include:: hubble-enable.rst

Next steps
Expand Down
9 changes: 9 additions & 0 deletions Documentation/gettingstarted/namespace-cilium.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Specify Environment Variables
=============================

Specify the namespace in which Cilium is installed as ``CILIUM_NAMESPACE``
environment variable. Subsequent commands reference this environment variable.

.. parsed-literal::
export CILIUM_NAMESPACE=cilium
9 changes: 9 additions & 0 deletions Documentation/gettingstarted/namespace-kube-system.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Specify Environment Variables
=============================

Specify the namespace in which Cilium is installed as ``CILIUM_NAMESPACE``
environment variable. Subsequent commands reference this environment variable.

.. parsed-literal::
export CILIUM_NAMESPACE=kube-system

0 comments on commit 575bff8

Please sign in to comment.