3.3.3. CLI Manager Operator에 플러그인 추가
OpenShift Container Platform 웹 콘솔의 YAML 보기에서 새 플러그인 리소스를 생성하여 CLI Manager Operator에 CLI 플러그인을 추가할 수 있습니다.
사전 요구 사항
-
cluster-admin역할의 사용자로 OpenShift Container Platform에 로그인되어 있습니다. - CLI Manager Operator가 설치되어 있습니다.
프로세스
- OpenShift Container Platform 웹 콘솔에 로그인합니다.
-
Ecosystem
설치된 Operators 로 이동합니다. - 목록에서 CLI Manager Operator 를 선택합니다.
- CLI 플러그인 탭을 선택합니다.
- 플러그인 생성을 클릭합니다.
텍스트 상자에 설치 중인 플러그인에 대한 정보를 입력합니다. 다음 예제 YAML 파일을 참조하십시오.
플러그인을 추가하는 YAML 파일의 예
apiVersion: config.openshift.io/v1alpha1 kind: Plugin metadata: name: <plugin_name> spec: description: <description_of_plugin> homepage: <plugin_homepage> platforms: - bin: files: - from: <plugin_file_path> to: . image: <plugin_image> imagePullSecret: platform: <platform> shortDescription: <short_description_of_plugin> version: <version>다음과 같습니다.
<plugin_name>- 명령에서 사용할 플러그인의 이름을 지정합니다.
bin- 플러그인 실행 파일의 경로를 지정합니다.
imagePullSecret- 플러그인 이미지에 액세스할 수 있는 풀 시크릿을 추가하는 레지스트리가 공개되지 않은 경우 선택적 필드입니다.
<platform>-
시스템의 아키텍처(예:
linux/amd64,darwin/arm64,windows/amd64) 또는 다른 아키텍처를 추가합니다. <version>- 버전은 v0.0.0 형식이어야 합니다.
- 저장을 클릭합니다.
검증
- 다음 명령을 입력하여 플러그인이 나열되었으며 성공적으로 추가되었는지 확인합니다.
$ oc get plugin/<plugin_name> -o yaml
- 출력 예:
<plugin_name> ready to be served.