스마트시대

Configure Kubectl 본문

Docker/Kubernetes

Configure Kubectl

스마트시대 2021. 9. 11. 21:27
728x90

Kubectl writes a command in the following formot

kubectl [command] [type] [name] [flags]

- command : Commands that you want to run on objects (create, get, delete)

- type: object type ( pod, service, ingress)

- name: object name

- flag: options to set additional.

 

There are first flag and second one.

Cf> One dash(-): System five options, abbreviated command, etc.

Two dashes(--): BAS series of options, commands to resolve commands, etc.

 

 

"kubectl exec webserver -it -- /bin/bash" is for enter to docker.

You can check the nginx webserver is running.

To see details, you can use elinks as well. To escape from elinks, Press esc button, click file section and press X button.

 

728x90
반응형

'Docker > Kubernetes' 카테고리의 다른 글

Tools to configure K8s clusters itself  (0) 2021.09.09
Concept of Kubernetes(K8S)  (0) 2021.09.09
Comments