Skip to content

Exec example for copying files to pod #67

@cmosgh

Description

@cmosgh

Managed to download file from pod by creating a writestream and using it as stdout

const downloadCommand = ["tar", "czpf", "-", `${remotePath}`];
const localFile = fs.createWriteStream(localPath);
Exec.exec(nameSpace, podName, containerName, downloadCommand, localFile, null, null, false);

But I wouldn't know how to upload a file/folder to the container.

Anyone can help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions