Remove cp examples from the port-forward page

The examples at the end of the port_forward_to_pods page are derived
from the copying_container_files page when it was created.
This commit is contained in:
Jonas Fonseca 2019-03-25 23:30:36 -04:00 committed by Jonas Fonseca
parent 553a2e62a3
commit f3ce8ffd6b
No known key found for this signature in database
GPG Key ID: 5D9440708E570A8A
1 changed files with 0 additions and 32 deletions

View File

@ -62,35 +62,3 @@ kubectl port-forward pod/mypod :5000
``` ```
{% endmethod %} {% 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 %}