I'm trying to move local folder into kubernetes volume by following command:
kubectl cp /* mynamespace/mypod-xxxx-xxxx:/var/www/my-content
Unfortunately, I got following error message:
error: one of src or dest must be a remote file specification
even I've configured volume mount as follow:
volumeMounts:
- mountPath: "/var/www/my-content"
name: mycontent
volumes:
- name: mycontent
persistentVolumeClaim:
claimName: mypvc
Please let me know which I missed something to configure it.