6.2. 웹 콘솔에서 사용자 정의 링크 작성
ConsoleLink 사용자 지정 리소스를 생성하여 웹 콘솔의 도움말 메뉴, 사용자 메뉴, 애플리케이션 메뉴 또는 이름 공간 대시보드에 링크를 추가할 수 있습니다.
전제 조건
- 클러스터 관리자 권한이 있어야합니다.
프로세스
-
Administration
Custom Resource Definitions에서 ConsoleLink 를 클릭합니다. - Instances 탭을 선택합니다.
Create Console Link를 클릭하고 파일을 편집합니다.
apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: name: example spec: href: 'https://www.example.com' location: HelpMenu text: Link 1위치필드는HelpMenu,UserMenu,ApplicationMenu또는NamespaceDashboard을 수용합니다.모든 네임 스페이스에 사용자 정의 링크를 표시하려면 다음 예제를 따르십시오.
apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: name: namespaced-dashboard-link-for-all-namespaces spec: href: 'https://www.example.com' location: NamespaceDashboard text: This appears in all namespaces일부 네임 스페이스에만 사용자 정의 링크를 표시하려면 다음 예제를 따르십시오.
apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: name: namespaced-dashboard-for-some-namespaces spec: href: 'https://www.example.com' location: NamespaceDashboard # This text will appear in a box called "Launcher" under "namespace" or "project" in the web console text: Custom Link Text namespaceDashboard: namespaces: # for these specific namespaces - my-namespace - your-namespace - other-namespace애플리케이션 메뉴에 사용자 정의 링크를 표시하려면 다음 예제를 따르십시오.
apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: name: application-menu-link-1 spec: href: 'https://www.example.com' location: ApplicationMenu text: Link 1 applicationMenu: section: My New Section # image that is 24x24 in size imageURL: https://via.placeholder.com/24- 저장을 클릭하여 변경 사항을 적용합니다.