openshift-origin

How to allow image pull from one project to another in openshift?

南楼画角 提交于 2020-05-26 05:13:13
问题 I have created one project testing1 in which i published docker images. Now, i want to created similar another project testing2 with same images that i pushed in testing1 . I don’t want to publish it again. 回答1: Login to your openshift command line and run command: oc policy add-role-to-user \ system:image-puller system:serviceaccount:testing2:default \ --namespace=testing1 OR oc policy add-role-to-user \ system:image-puller system:serviceaccount:testing2:default \ -n testing1 Your project

What happens when the Kubernetes master fails?

本秂侑毒 提交于 2020-03-17 04:29:50
问题 I've been trying to figure out what happens when the Kubernetes master fails in a cluster that only has one master. Do web requests still get routed to pods if this happens, or does the entire system just shut down? According to the OpenShift 3 documentation, which is built on top of Kubernetes, (https://docs.openshift.com/enterprise/3.2/architecture/infrastructure_components/kubernetes_infrastructure.html), if a master fails, nodes continue to function properly, but the system looses its

What happens when the Kubernetes master fails?

主宰稳场 提交于 2020-03-17 04:28:11
问题 I've been trying to figure out what happens when the Kubernetes master fails in a cluster that only has one master. Do web requests still get routed to pods if this happens, or does the entire system just shut down? According to the OpenShift 3 documentation, which is built on top of Kubernetes, (https://docs.openshift.com/enterprise/3.2/architecture/infrastructure_components/kubernetes_infrastructure.html), if a master fails, nodes continue to function properly, but the system looses its

How to change OpenShift console URL and API URL

北慕城南 提交于 2020-02-05 05:20:08
问题 My company runs OpenShift v3.10 cluster consisting of 3 masters and 4 nodes. We would like to change URL of the OpenShift API and also the URL of the OpenShift web console. Which steps we need to take to successfully do so? We have already tried to update the o penshift_master_cluster_hostname and openshift_master_cluster_public_hostname variables to new DNS names, which resolve our F5 virtual hosts which load balances the traffic between our masters, and then started the upgrade Ansible

Validate OpenShift objects defined in yaml before actually applying or executing it

五迷三道 提交于 2020-01-24 09:54:05
问题 I have a OpenShift template in template.yaml file which includes following objects - deployment-config, pod, service and route. I am using the following command to execute the yaml: oc process -f template.yml | oc apply -f - I want to perform following validations before I actually apply/execute the yaml: YAML syntax validation - if there are any issues with the YAML syntax. OpenShift schema validation - to check if the object definition abides by the OpenShift object schema. It seems that

How can I install JBoss EAP and JBoss EWS Support in OpenShift Origin

倖福魔咒の 提交于 2020-01-13 05:15:14
问题 I created a VM with OpenShift Origin in CentOS 6.5 which followed the oo-installer guide. However, when I follow the Install JBoss EAP and JBoss EWS Support to install JBoss EAP cartridge, I got dependency error which requires several dependencies, like jbossas-domain, maven3... as following... How can I fix this? Thanks. yum install openshift-origin-cartridge-jbosseap.noarch openshif t-origin-cartridge-jbossews.noarch openshift-origin-cartridge-jenkins.noarch ope nshift-origin-cartridge

how to get kaa deployed on openshift

北城余情 提交于 2020-01-06 07:00:52
问题 The Kaa platform as an IoT cloud platform is prebuilt to run on amazon aws or a virtualbox sandbox. Is it immediately deployable to openshift, especially the starter free plan? If not, what it takes to get it to work? I have looked at the python on openshift which uses the S2I to dockerize a software collections version of python, e.g. 2.7. I'm wondering how these projects or technologies would work together to make Kaa to run on multiple platforms, or to make more versions/flavors/variants

skopeo inspect does not work behind proxy

*爱你&永不变心* 提交于 2020-01-06 05:37:04
问题 I am facing this while installing OKD 3.11. While the docker login works from command line, skopeo fail to do so. We are using http/https proxy on the server and have configured proxy for docker as well. [root@hostname-ansible01 openshift-ansible]# docker login registry.redhat.io:443 -u user_openshift -p password Login Succeeded [root@hostname-ansible01 openshift-ansible]# skopeo inspect --creds=user_openshift:password docker://registry.redhat.io:443/openshift3/ose-deployer:v3.11 FATA[0000]

openshift v3 deploy not working

北城以北 提交于 2020-01-06 05:29:41
问题 I am trying to migrate my java/tomcat application to openshift v3. I have set up the build s2i to point to my git repository, it finds the pom.xml and builds everything, it then displays the message "Copying all war artifacts from /tmp/src/target directory into /opt/webserver/webapps for later deployment...", it then does the docker push. Everything seems ok to this point. The application gets deployed and I connect to the terminal - I see all the artifacts in /tmp/src/target, but NOT in /opt

Openshift: how to edit scc non-interactively?

房东的猫 提交于 2020-01-04 09:35:09
问题 I am experimenting with openshift/minishift, I find myself having to run: oc edit scc privileged and add: - system:serviceaccount:default:router So I can expose the pods. Is there a way to do it in a script? I know oc adm have some command for policy manipulation but I can't figure out how to add this line. 回答1: You can achieve it using oc patch command and with type json. The snippet below will add a new item to array before 0th element. You can try it out with a fake "bla" value etc. oc