openshift-origin

How to create a local development environment for Kubernetes?

戏子无情 提交于 2019-12-18 09:58:43
问题 Kubernetes seems to be all about deploying containers to a cloud of clusters. What it doesn't seem to touch is development and staging environments (or such). During development you want to be as close as possible to production environment with some important changes: Deployed locally (or at least somewhere where you and only you can access ) Use latest source code on page refresh (supposing its a website; ideally page auto-refresh on local file save which can be done if you mount source code

How to re-route the Openshift private address to a public one

拟墨画扇 提交于 2019-12-13 12:39:57
问题 I set up openshift V3 all-in-one on a VM in the cloud so how can I contact it as the address is private and internal. I think I have to start Vagrand with some magic parameters but I haven't clue about them. Thanks 回答1: When testing Openshift, I deployed the all in one VM in an Openstack instance. To be able to access Openshift, I had to change master-config.yaml configuration (which in the VM is located in /var/lib/origin/openshift.local.config/master/master-config.yaml) Changing all

Running builds on a specific, dedicated node set

a 夏天 提交于 2019-12-12 06:31:18
问题 Is it possible to write a scheduler rule to schedule builds on a specific node label (e.g. role=builder )? I'm struggling to understand how the schedular rules match pod labels (e.g. buildconfig=web to node types). 回答1: It is not possible today without adding a custom scheduler extension. The has been discussion about adding it, but no work has been done so far. 来源: https://stackoverflow.com/questions/36511443/running-builds-on-a-specific-dedicated-node-set

How to get openshift oc command working on Raspberry pi 3?

こ雲淡風輕ζ 提交于 2019-12-12 04:39:36
问题 I'm trying to compile openshift origin source on my raspberry pi 3 but it keeps timing out. The tutorial I'm following is from here Reason I'm doing this is because I get the error ./oc: cannot execute binary file: Exec format error when I download the file directly from here and use it. So can anyone tell me what I have to do to make this work or how I fix the errors? With openshift 2 being discontinued soon, I cannot access my application with rhc anymore (which works fine on my RPi3). 回答1:

openshift persistent volumes

ⅰ亾dé卋堺 提交于 2019-12-12 02:53:19
问题 can we use same NFS persistent volume for multiple pods in openshift v3.1. because what I noticed is when I mount the same persistent volumes to multiple pods, all data inside mounted directory of container gets replaced by NFS volume directory of server. How to make sure that NFS volume has data from multiple pods. And pods only has their data, not all data from the PV? thanks in advance! 回答1: NFS persistent volumes will be the same across multiple pods. You can always use the pod name as an

Could not access a running Docker Image of War (with tomcat) in minishift - OpenShift-Origin

匆匆过客 提交于 2019-12-12 02:08:09
问题 I have crated a docker image for a simple Java-Spring MVC War file, (Docker Config below). I am able to run the using docker run command and also I do not see any errors in the log or trouble uploading war into internal registry in Openshift-minishift. I was able to pull the image in my Openshift-minishift console. #Docker Config FROM tomcat:8.0.20-jre8 MAINTAINER ashok.gudise@github ENV CATALINA_HOME /usr/local/tomcat ENV PATH $CATALINA_HOME/bin:$PATH RUN mkdir -p "$CATALINA_HOME" WORKDIR

Should I install Kubelet for OpenShift?

社会主义新天地 提交于 2019-12-11 18:38:12
问题 I'm trying to download the OpenShift Origin server with this tutorial in order to be able to increase amount of memory dedicated to the build. Yet Whil following the tutorial I tried to launch the server but got an error about Kubelet. I have Ubuntu 16.04. ~/openshift-origin-server-v3.9.0-191fece-linux-64bit$ sudo ./openshift start .... F0622 17:00:24.659470 14610 server.go:173] failed to run Kubelet: failed to create kubelet: failed to get docker version: Cannot connect to the Docker daemon

Deploying a specific image tag in OpenShift Origin from image stream

≯℡__Kan透↙ 提交于 2019-12-11 17:09:09
问题 I have configured my Gitlab CI pipelines so that they build an OCI image with Docker-in-Docker and upload it to Gitlab's own registry. Now, I want to deploy images built in my CI pipelines to OpenShift Origin. All images in the registry are tagged with $CI_COMMIT_SHORT_SHA (i.e.: I do not use "latest"). How can I do that? This is what I have tried so far: before_script: - oc login --server="$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" - oc project myproject script: - oc tag registry.gitlab

OKD 3.11 Installation failed “Control plane pods didn't come up” “network plugin is not ready: cni config uninitialized”

拟墨画扇 提交于 2019-12-11 09:02:42
问题 OKD 3.11 Installation failed "Control plane pods didn't come up" Environment CentOS Linux release 7.6.1810 (Core) ansible 2.6.16 OKD 3.11 Docker version 1.13.1, build b2f74b2/1.13.1 Ansible inventory file ##Open shift master nodes # Create an OSEv3 group that contains the masters, nodes, and etcd groups [OSEv3:children] masters nodes etcd # host group for masters [masters] SBSTJVMLX605 openshift_ip=192.168.62.95 # host group for etcd [etcd] SBSTJVMLX605 openshift_ip=192.168.62.95 # host group

Openshift public url app (migration)

风流意气都作罢 提交于 2019-12-11 07:06:40
问题 Would be possible, when migrating from Openshift 2 to 3, to keep the xxx.rhcloud.com url? Anybody knows if Red Hat is providing some solution? O maybe some kind of redirection would work? Thanks in advance. 回答1: Confirmed by Openshift Support: "Unfortunately, we are unable to provide the same URLs that you have used previously. You would have to recompile your applications with new URLs following a migration." 来源: https://stackoverflow.com/questions/45923453/openshift-public-url-app-migration