7.2. Getting started with dynamic plugins


To get started using the dynamic plugin, you must set up your environment to write a new OpenShift Container Platform dynamic plugin. For an example of how to write a new plugin, see Adding a tab to the pods page.

7.2.1. Dynamic plugin development

You can run the plugin using a local development environment. The OpenShift Container Platform web console runs in a container connected to the cluster you have logged into.

Prerequisites

  • You must have cloned the console-plugin-template repository, which contains a template for creating plugins.

    중요

    Red Hat does not support custom plugin code. Only Cooperative community support is available for your plugin.

  • You must have an OpenShift Container Platform cluster running.
  • You must have the OpenShift CLI (oc) installed.
  • You must have yarn installed.
  • You must have Docker v3.2.0 or later or Podman v3.2.0 or later installed and running.

Procedure

  1. Open two terminal windows.
  2. In one terminal window, run the following command to install the dependencies for your plugin using yarn.

    $ yarn install
  3. After installing, run the following command to start yarn.

    $ yarn run start
  4. In another terminal window, login to the OpenShift Container Platform web console through the CLI.

    $ oc login
  5. Run the OpenShift Container Platform web console in a container connected to the cluster you have logged in to by running the following command:

    $ yarn run start-console
    참고

    The yarn run start-console command runs an amd64 image and might fail when run with Apple Silicon and Podman. You can work around it with qemu-user-static by running the following commands:

    $ podman machine ssh
    $ sudo -i
    $ rpm-ostree install qemu-user-static
    $ systemctl reboot

Verification

  • Visit localhost:9000 to view the running plugin. Inspect the value of window.SERVER_FLAGS.consolePlugins to see the list of plugins which load at runtime.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동