2.4. Deploying the front-end application


Deploy the front-end application that provides the external-facing web component for the tutorial.

The simplest way to deploy an application in OpenShift Container Platform is to run a provided container image.

The following procedure deploys parksmap, which is the front-end component of the national-parks-app application. The web application displays an interactive map of the locations of national parks across the world.

Procedure

  1. From the Quick create ( fa plus circle ) menu in the upper right corner, click Container images.
  2. Select Image name from external registry and enter quay.io/openshiftroadshow/parksmap:latest.
  3. Scroll to the General section.
  4. In the Application name field, enter national-parks-app.
  5. In the Name field, ensure that the value is parksmap.
  6. Scroll to the Deploy section.
  7. In the Resource type field, ensure that Deployment is selected.
  8. In the Advanced options section, ensure that Create a route is selected.

    By default, services running on OpenShift Container Platform are not accessible externally. You must select this option to create a route so that external clients can access your service.

  9. Click the Labels hyperlink.

    The application code requires certain labels to be set.

  10. Add the following labels to the text area and press Enter after each key/value pair:

    • app=national-parks-app
    • component=parksmap
    • role=frontend
  11. Click Create.

    You are redirected to the Topology page where you can see the parksmap deployment in the national-parks-app application.

2.4.1. Viewing pod details

Retrieve detailed pod information to confirm the running status and resource configuration of the applications in this tutorial.

OpenShift Container Platform uses the Kubernetes concept of a pod, which is one or more containers deployed together on one host, and the smallest compute unit that can be defined, deployed, and managed. Pods are the rough equivalent of a machine instance, physical or virtual, to a container.

The Overview panel enables you to access many features of the parksmap deployment. The Details and Resources tabs enable you to scale application pods and check the status of builds, services, and routes.

Prerequisites

  • You have deployed the parksmap front-end application.

Procedure

  1. Navigate to Workloads Topology.
  2. Click the parksmap deployment in the national-parks-app application.

    그림 2.1. Parksmap deployment

    Topology view of parksmap deployment

    This opens an overview panel with the following tabs:

    • Details: View details about your deployment, edit certain settings, and scale your deployment.
    • Resources: View details for the pods, services, and routes associated with your deployment.
    • Observe: View metrics and events for your deployment.
  3. To view the logs for a pod, select the Resources tab and click View logs next to the parksmap pod.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동