Kubernetes kubectl: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
Line 2: Line 2:
Kubectl 명령어 내용 정리
Kubectl 명령어 내용 정리


== Action ==
== Actions ==
=== run ===
=== run ===
The run command creates a new deployment. This performed a few things.
The run command creates a new deployment. This performed a few things.
Line 8: Line 8:
* Scheduled the application to run on that Node.
* Scheduled the application to run on that Node.
* Configured the cluster to reschedule the instance on a new Node when needed.
* Configured the cluster to reschedule the instance on a new Node when needed.
=== get ===
Display one or many resources.
Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current namespace unless you pass --all-namespaces.
Uninitialized objects are not shown unless --include-uninitialized is passed.
By specifying the output as 'template' and providing a Go template as the value of the --template flag, you can filter the attributes of the fetched resources.


== ETC ==
== ETC ==

Revision as of 08:40, 1 May 2019

Overview

Kubectl 명령어 내용 정리

Actions

run

The run command creates a new deployment. This performed a few things.

  • Searched for a suitable node where an instance of the application could be run.
  • Scheduled the application to run on that Node.
  • Configured the cluster to reschedule the instance on a new Node when needed.

get

Display one or many resources.

Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current namespace unless you pass --all-namespaces.

Uninitialized objects are not shown unless --include-uninitialized is passed.

By specifying the output as 'template' and providing a Go template as the value of the --template flag, you can filter the attributes of the fetched resources.

ETC

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:08:12Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:00:57Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}