If I know the name of the fileĪll I have to do is pass the file’s relative path that it is stored Suppose I have a tarball (.tar.gz file) which is large and I only $ kubectl cp file1.txt my-resource:file1.txt The cp parameter lets you copy files and directories to $ kubectl exec -it my-resource -n charts - /bin/bash The exec parameter allows you to exec into a The logs parameter displays the contents of the The describe parameter provides details of your The apply parameter allows you to apply configurations The delete parameter allows you to remove resources: The edit parameter allows you to update resources: $ kubectl create cj my-cronjob -image=alpine -schedule="*/15 * * * *" - echo "hi there" You can also use cj as an abreviation for $ kubectl create ns hello-world $ kubectl create cronjob my-cronjob -image=alpine -schedule="*/15 * * * *" - echo "hi there" $ kubectl get nodes $ kubectl get ns # ns is an abreviation for namespace $ kubectl get pods -n kube-system You can use it to query: * namespace * pod * node * The get parameter is a powerful way of discovering your
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |