4.3. 도움말 가져오기
다음과 같은 방법으로 CLI 명령 및 MicroShift 리소스에 대한 도움말을 얻을 수 있습니다.
oc help --flag를 사용하여 특정 CLI 명령에 대한 정보를 가져옵니다.예:
oc create명령에 대한 도움말 가져오기$ oc create --help출력 예
Create a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] ...oc explain명령을 사용하여 특정 리소스에 대한 설명 및 필드를 봅니다.예:
Pod리소스에 대한 문서 보기$ oc explain pods출력 예
KIND: Pod VERSION: v1 DESCRIPTION: Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources ...