diff --git a/contrib/pools-management/README.rst b/contrib/pools-management/README.rst index 7621e341c..f7bc61acd 100644 --- a/contrib/pools-management/README.rst +++ b/contrib/pools-management/README.rst @@ -185,7 +185,7 @@ We can see that now we have 7 subports, 3 of them attached to `trunk0` and 4 After that, if we create a new pod, we can see that the pre-created subports are being used:: - $ kubectl run demo --image=celebdor/kuryr-demo + $ kubectl create deployment demo --image=celebdor/kuryr-demo $ kubectl scale deploy/demo --replicas=2 $ kubectl get pods NAME READY STATUS RESTARTS AGE diff --git a/doc/source/devref/network_policy.rst b/doc/source/devref/network_policy.rst index ab6951c9f..71714b9b8 100644 --- a/doc/source/devref/network_policy.rst +++ b/doc/source/devref/network_policy.rst @@ -255,7 +255,7 @@ Create the following pod with label ``role=monitoring``: .. code-block:: console - $ kubectl run monitor --image=busybox --restart=Never --labels=role=monitoring + $ kubectl create deployment monitor --image=busybox --restart=Never --labels=role=monitoring The generated CRD contains an ingress rule allowing traffic on port 8080 from the created pod, and an egress rule allowing traffic to everywhere, since no diff --git a/doc/source/installation/devstack/basic.rst b/doc/source/installation/devstack/basic.rst index f6038b7e1..9ba11b6ff 100644 --- a/doc/source/installation/devstack/basic.rst +++ b/doc/source/installation/devstack/basic.rst @@ -133,7 +133,7 @@ To test kuryr-kubernetes itself try creating a Kubernetes pod: .. code-block:: console - $ kubectl run --image busybox test -- sleep 3600 + $ kubectl create deployment --image busybox test -- sleep 3600 $ kubectl get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE test-3202410914-1dp7g 0/1 ContainerCreating 0 7s localhost diff --git a/doc/source/installation/network_namespace.rst b/doc/source/installation/network_namespace.rst index 5f03b439c..caec1895b 100644 --- a/doc/source/installation/network_namespace.rst +++ b/doc/source/installation/network_namespace.rst @@ -118,10 +118,10 @@ Testing the network per namespace functionality .. code-block:: console - $ kubectl run -n test1 --image kuryr/demo demo + $ kubectl create deployment -n test1 --image kuryr/demo demo deployment "demo" created - $ kubectl run -n test2 --image kuryr/demo demo + $ kubectl create deployment -n test2 --image kuryr/demo demo deployment "demo" created $ kubectl -n test1 get pod -o wide diff --git a/doc/source/installation/testing_connectivity.rst b/doc/source/installation/testing_connectivity.rst index ebf09253b..7d9212ce2 100644 --- a/doc/source/installation/testing_connectivity.rst +++ b/doc/source/installation/testing_connectivity.rst @@ -27,7 +27,7 @@ deployment with: .. code-block:: console - $ kubectl run demo --image=celebdor/kuryr-demo + $ kubectl create deployment demo --image=celebdor/kuryr-demo deployment "demo" created After a few seconds, the container is up an running, and a neutron port was diff --git a/doc/source/installation/testing_nested_connectivity.rst b/doc/source/installation/testing_nested_connectivity.rst index f665956f3..505f32418 100644 --- a/doc/source/installation/testing_nested_connectivity.rst +++ b/doc/source/installation/testing_nested_connectivity.rst @@ -8,7 +8,7 @@ successful: .. code-block:: console - $ kubectl run demo --image=celebdor/kuryr-demo + $ kubectl create deployment demo --image=celebdor/kuryr-demo $ kubectl scale deploy/demo --replicas=2 $ kubectl expose deploy/demo --port=80 --target-port=8080 diff --git a/doc/source/installation/testing_udp_services.rst b/doc/source/installation/testing_udp_services.rst index e30a67d36..50b23b68b 100644 --- a/doc/source/installation/testing_udp_services.rst +++ b/doc/source/installation/testing_udp_services.rst @@ -10,7 +10,7 @@ We first create a deployment named demo: .. code-block:: console - $ kubectl run --image=yboaron/kuryr-udp-demo demo + $ kubectl create deployment --image=yboaron/kuryr-udp-demo demo deployment "demo" created As the next step, we will scale the deployment to 2 pods: