I am new to openshift origin and just downloaded binary (All-in-One Server) from below URL and untar it
https://github.com/openshift/origin/releases
Now while google i found two option to start working with it, i want to know whats difference between them??
oc cluster up
openshift start
As both are providing console like
localhost:8443/console
Related
I have an OpenShift 3.11 project using PHP and I would like to execute a script to configure the pod after it is deployed. The first thing the script will do is to create a symbolic link from the pod to the PV named /storage so that I can display the reports in the reports directory on the PV in a browser. I would also like to copy an image from my image directory - the image will indicate whether the application is running on the development system, the test system or production. The name of the appropriate image will be held in a config map which is tailored to each system.
I did consider OpenShift's Pod Based Lifecycle Hooks but they appear to run in a separate pod to the application that is deployed so the symbolic link will not be created in the application pod. The OpenShift documentation mentions you can change your image's ENTRYPOINT. The example shows running a Java application however I still require the PHP and Apache image to be deployed in addition to creating the symbolic link and copying the image.
Is it possible to perform post deployment configuration of a pod in OpenShift and if so how is it done?
I have installed CDK on my Windows 10 laptop.
I am following documentation on using IBM Blockchain Platform with RedHat OpenShift.
One of the first steps is issuing kubectl commands.
I see CDK comes with the OpenShift CLI (oc) installed but not with kubectl. Do I need to install kubectl separatelly ? If so, how do I configure kubectl to know about my OpenShift cluster running in CDK/minishift?
To answer your specific question, any time you see a "kubectl" command you can replace it with "oc".
You can also download kubectl directly from upstream, and it will use the same (by default, or use $KUBECONFIG to override) ~/.kube/config file.
However, you should know that CDK is based on OpenShift 3.11.z and is approaching end-of-life. I would suggest you take a look at CRC, which is based on 4.x. Start here for more information -- https://console.redhat.com/openshift/create/local
Hello every one i just want to know is it possible to use my local docker image for containers in redhat openshift online free trial version https://www.openshift.com/trial/ (the one that has test drive over it)? As far as i have searched there are some solutions but that dont seem to work with this openshift online free trial, also i want to know why am i bening asked to enter password again in the profile form when i try to install openshift cli?
Refer to this awesome youtube video, I was able to successfully deploy my local docker image onto the dedicated openshift platform's docker registry with the help of this: Push local docker images to openshift registry - minishift
For deploying from local system you may need to do similar steps, only thing that would be slightly different is that in the video he has a local instance, whereas you would be referring to the online openshift cluster. You would be logging into the docker registry of the online openshift cluster from your local system using the oc cli.
Hope it helps.
I launched a WordPress website on a GCE VM and connected it to cloud SQL database and the website ran perfectly. However when I did the same but on a GKE cluster the WordPress installation got stuck here: wp-admin/setup-config.php?step=2.
It just wouldn't load. I'm not sure whether this is a problem with scopes/permissions or something else.
If you did the same steps to install WordPress in GCE and GKE it will not work cuz its a different service architecture, for GKE you should use and follow the steps for Kubernetes (WordPress from GCP Marketplace); If you already use this steps to deploy your WordPress Containers I would suggest to check Stackdriver Logging to more information about this issue and also retrieve logs from the pods:
kubectl logs [POD NAME]
I have openshift 3.9 installed in one AWS region ohio. I have jenkins installed in it. I have a pipeline code in where it will take Java code from GitHub bind with jboss and deployed it in project test within the same cluster. It works fine and I'm able to access the app as pod is creating and app is also binding with jboss. Now I want to deploy this application across different clusters either within the same region or across different regions. Is there a way to achieve this?
You can use the oc command line tool in your Jenkins pipeline to deploy it to a different cluster. For a related example, check the Gitlab review apps example using an OpenShift cluster. It does something similar, where the CI pipeline deploys the required artifacts to an OpenShift cluster using oc and appropriate credentials.