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:
parent
553a2e62a3
commit
f3ce8ffd6b
|
|
@ -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 %}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue