Guide to deploying applications on OpenShift web console using pasted manifests or importing from Git to build, push, and deploy apps and inspect Deployments, Pods, and Routes
When deploying applications on OpenShift, the web console provides several UI-driven options that are fast and approachable. Two common methods are:
Paste a Kubernetes manifest to create a single Deployment.
Import an application from a Git repository so the console can build, push, and deploy the app automatically (using a Dockerfile or BuildConfig).
This guide walks through both approaches using the OpenShift web console, shows where to inspect runtime objects (Deployments, Pods, Routes), and includes example manifests and application source to help you get started.
Quick option: Paste a manifest to create a Deployment
For a one-off or simple deployment, use Administrator → Workloads → Deployments → Create Deployment and paste your manifest YAML.Minimal example (replicas and container details):
Paste or edit the manifest in the console and click Create. The console will create the Deployment and display detailed configuration: update strategy, maxUnavailable/maxSurge, node selectors, and the pod selector.
From the Deployment details you can navigate to matching pods to inspect their status, view metrics, see the YAML, view environment variables, access logs, and open an interactive terminal session (exec). The Pods view lists running pods that belong to the Deployment:
Click a pod to view details and access logs, metrics, and an interactive terminal:
Opening the Terminal tab runs an exec into the container (similar to kubectl exec/oc rsh). For example, listing files inside a typical nginx container:
# lsbin boot dev docker-entrypoint.d docker-entrypoint.sh etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var#
For simple, single-object deployments the pasted-manifest approach is fast and transparent. If your application requires multiple objects (Services, ConfigMaps, Secrets, Builds), consider importing from Git so the console can create all required resources automatically.
Import from Git: build, push, and deploy an entire app
For multi-object applications you can import the source repository (Developer → Add → From Git). The web console detects a Dockerfile or BuildConfig and will create Builds, ImageStreams, and DeploymentConfigs/Deployments for you.Example repository (a simple Go web API): https://github.com/AdminTurnedDevOps/GoWebAPI
Copy the Git HTTPS URL and paste it into Developer → Add → From Git. You can set an application name, choose Deployment vs. DeploymentConfig, and specify a target port. The import form optionally creates a Route (a public URL) to expose the application outside the cluster.
Choose the target port (this Go app listens on 8080) and enable “Create a route to the Application” to expose it via an externally reachable hostname. A Route maps a service to an externally accessible hostname handled by the cluster’s router.
Click Create — the console starts a Build, pushes an image into OpenShift’s internal registry, and creates the Deployment/DeploymentConfig and Route. After the build finishes you’ll see a running Pod and an active Route you can open in your browser. The root path should return the API response implemented by the source code.Repository main.go (simple Go web API returning JSON):
After import and a successful build you can verify the running Pod in Administrator → Workloads → Pods and find the Route in Networking → Routes. Opening the Route URL will display the JSON output from the running container.
Creating a Route exposes your service externally. Do not expose sensitive internal services or data without proper authentication, TLS, and access controls.