Skip to content

Commit

Permalink
Merge pull request kubernetes#624 from jonas/patch-1
Browse files Browse the repository at this point in the history
Remove cp examples from the port-forward page
  • Loading branch information
k8s-ci-robot authored Mar 29, 2019
2 parents 553a2e6 + f3ce8ff commit 50ed686
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions docs/book/pages/container_debugging/port_forward_to_pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,35 +62,3 @@ kubectl port-forward pod/mypod :5000
```

{% endmethod %}

---

{% method %}
## Specify the Container

Specify the Container within a Pod running multiple containers.

- `-c <container-name>`
{% sample lang="yaml" %}

```bash
kubectl cp /tmp/foo <some-pod>:/tmp/bar -c <specific-container>
```

{% endmethod %}

---

{% method %}
## Namespaces

Set the Pod namespace by prefixing the Pod name with `<namespace>/` .

- `<pod-namespace>/<pod-name>:<path>`
{% sample lang="yaml" %}

```bash
kubectl cp /tmp/foo <some-namespace>/<some-pod>:/tmp/bar
```

{% endmethod %}

0 comments on commit 50ed686

Please sign in to comment.