Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Copy Files From Pod to Host.
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Sample scenario: While modifying the configMap [argocd-cm] inside Sunpike-server pod. The recommended option is to take a backup of the comfigmap in yaml file format. Since, these files are residing inside pod, once the pod crashes the files will be lost in case of ephemeral volumes. To avoid this, we need copy the files from the pod to the host server.
Environment
- Platform9 Managed Kubernetes - v-5.4. and Higher
Procedure
From the Master node terminal execute below command, using which we can copy any file from pod to current master node:
Javascript
xxxxxxxxxxkubectl cp <some-namespace>/<some-pod>:/tmp/foo_in_pod /tmp/bar_in_master_nodeVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
How to Collect a Network Trace File from a BrowserDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message