This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
k8s [2021/03/04 07:17]
k8s [2021/03/04 08:20] (current)
jdx [Kubectl CheatSheet]
Line 32: Line 32:
 k describe po <​po-name>​ k describe po <​po-name>​
-k get secrets +k get secret 
-k get secrets ​-A+k get secret ​-A
 k get secret <​secret-name>​ -o yaml k get secret <​secret-name>​ -o yaml
-k create secret generic <​secret-name>​ --from-literal=mykey=myvalue+k create secret generic <​secret-name>​ --from-literal=mykey=myvalue ​[--from-file=./​myfile.txt] -n <​my-namespace>​
 </​code>​ </​code>​
  • k8s.txt
  • Last modified: 2021/03/04 08:20
  • by jdx