New answers tagged

0 votes

Accessing k8s outside of VM

To access Kubernetes you typically use port-forward, like this (take from KubeApps) $ kubectl port-forward -n kubeapps svc/kubeapps 8080:80 Forwarding from 127.0.0.1:8080 -> 8080 Forwarding from [::...
user avatar
0 votes

Copy multiple files using * wildcard from kubernetes container

I had a similar requirement and finally settled on: mkdir /my/dest/dir kubectl exec $TARGET_POD -n MYNAMESPACE -- tar -zcvf - -C /my/src/directory . | tar -zxvf - -C /my/dest/dir This depends on '...
user avatar

Top 50 recent answers are included