marcio-pessoa / kubectl-cp Goto Github PK
View Code? Open in Web Editor NEWAn easy way to copy files from/to containers running on Kubernetes
Home Page: https://github.com/marcio-pessoa/kubectl-cp
License: GNU General Public License v3.0
An easy way to copy files from/to containers running on Kubernetes
Home Page: https://github.com/marcio-pessoa/kubectl-cp
License: GNU General Public License v3.0
kubectl-cp -a "-n argocd deployment.apps/argocd-server" -v argocd_2023-12-28.yaml argocd-server:/tmp/backup.yaml
direction: upload
container: argocd-server
source: argocd_2023-12-28.yaml
destination: /tmp/backup.yaml
arguments: -n argocd deployment.apps/argocd-server
Command: /snap/bin/kubectl exec -i -n argocd deployment.apps/argocd-server -c argocd-server -- sh -c "tee /tmp/backup.yaml > /dev/null"
Traceback (most recent call last):
File "/home/me/bin/kubectl-cp", line 337, in <module>
Main()
File "/home/me/bin/kubectl-cp", line 124, in __init__
self.from_localhost_to_container(
File "/home/me/bin/kubectl-cp", line 225, in from_localhost_to_container
result = subprocess.run(shlex.split(cmd), input=content,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 550, in run
stdout, stderr = process.communicate(input, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1194, in communicate
self._stdin_write(input)
File "/usr/lib/python3.11/subprocess.py", line 1143, in _stdin_write
self.stdin.write(input)
TypeError: a bytes-like object is required, not 'bool'
Common paths:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google 鉂わ笍 Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.