Show List
View application files deployed in openshift
To view the files deployed with an application in OpenShift, you can use the oc command-line tool or the OpenShift web console. Here are the steps for each option:
Using the oc command-line tool:
- Open a terminal and log in to your OpenShift cluster using the
oc logincommand. - Select the project or namespace where the application is deployed using the
oc projectcommand. - Use the
oc get podscommand to retrieve the list of pods running the application. - Identify the name of the pod that you want to access the files in. For example, if the name of the pod is
myapp-1234-xyz, you can use the following command to open a terminal in the pod:
Copy code
oc rsh myapp-1234-xyz
cd command and list the files using the ls command.Using the OpenShift web console:
- Open your web browser and log in to your OpenShift cluster.
- Navigate to the project or namespace where the application is deployed.
- Click on the name of the application to open its overview page.
- Click on the "Topology" tab to view the topology of the application.
- Click on the pod that you want to access the files in.
- Click on the "Terminal" button in the top right corner to open a terminal in the pod.
- Once you are connected to the pod, you can navigate the file system using the
cdcommand and list the files using thelscommand.
Note that in some cases, the files of the application may be stored in a separate persistent volume, which may require additional steps to access.
Leave a Comment