minishift | Run OpenShift | Continuous Deployment library
kandi X-RAY | minishift Summary
kandi X-RAY | minishift Summary
Minishift is a tool that helps you run OpenShift locally by running a single-node OpenShift cluster inside a VM. You can try out OpenShift or develop with it, day-to-day, on your local host. Minishift uses libmachine for provisioning VMs, and OpenShift Origin for running the cluster. The code base is forked from the Minikube project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of minishift
minishift Key Features
minishift Examples and Code Snippets
Community Discussions
Trending Discussions on minishift
QUESTION
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?
...ANSWER
Answered 2021-Sep-14 at 08:15To 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
QUESTION
I have been shifting a project from kube to openshift. In minikube the project was working fine, but in minishift it gives the error
...ANSWER
Answered 2021-Apr-20 at 18:10OpenShift ignores the USER
-directive from Dockerfiles and instead generates a random UID for the user in the container. There are some idea about security behind this.
From OpenShift documentation:
Support Arbitrary User IDs
By default, OpenShift Container Platform runs containers using an arbitrarily assigned user ID. This provides additional security against processes escaping the container due to a container engine vulnerability and thereby achieving escalated permissions on the host node.
For an image to support running as an arbitrary user, directories and files that may be written to by processes in the image should be owned by the root group and be read/writable by that group. Files to be executed should also have group execute permissions.
QUESTION
I want to deploy my web application in Openshift cluster running on AWS cloud. I'm using expose
command to make it available externally:
oc expose service svcname
But when I try to access it, I get this error:
The web application is running not on 8443; it's running on port 2553 using https.
We don't want to run it on 8443.
I am able to connect to webapp using oc port-forward
but I want to make it work
by exposing through route command.
Is there something wrong in my approach?
ANSWER
Answered 2021-Feb-08 at 16:36You'll need to make sure that both your Service
and your Route
have the correct port specified.
Check your
Service
for theport
and thetargetPort
. You can find more information in the Kubernetes documentation: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-serviceCheck that your
Route
has specified the correctport
in thespec
. You can also useoc expose service svcname --port=2553
to create the Route based on the Service.In your description you also noted that you are terminating TLS, so potentially you'll need to create a "passthrough" or "reencrypt" Route, which is easiest done using the following commands:
oc create route passthrough myroute-passthrough --service=svcname --port=2553
oc create route reencrypt myroute-reencrypt --service=svcname --prt=2553
You can find more information on secured Routes here: https://docs.openshift.com/container-platform/4.6/networking/routes/secured-routes.html
QUESTION
I have installed the latest Minishift release 1.34.3
on Windows 10 Hyper-V. The OpenShift client version is 4.6.16
as expected however the Kubernetes version is 1.11
.
ANSWER
Answered 2021-Feb-15 at 19:46minishift is based on OpenShift 3, not the newer OpenShift 4.
Note: Minishift runs OpenShift 3.x clusters. Due to different installation methods, OpenShift 4.x clusters are not supported.
The client, oc
you are using is a newer version.
QUESTION
While trying to start minishift, it automatically updates the cache in the home directory.
...ANSWER
Answered 2020-Jul-30 at 15:40As noted, you should use Code Ready Containers (CRC) and not minishift. This is a known issue and is being tracked here: code-ready/crc/issues/817.
The current workaround seems to be to create the directory where you want it to be and then create a symlink to ~/.crc
:
QUESTION
I'm trying to call a vertx service from a spring boot service and both services are deployed in openshift; but got this exception:
2020-04-28 03:25:12.556 ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://vertx-service:8080/": Connection timed out (Connection timed out); nested exception is java.net.ConnectException: Connection timed out (Connection timed out)] with root cause java.net.ConnectException: Connection timed out (Connection timed out) ...
This is the code used to call the service from spring boot application:
...ANSWER
Answered 2020-Apr-28 at 07:32Have you tried with just
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install minishift
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page