如何更改OpenShift控制台URL和API URL [英] How to change OpenShift console URL and API URL

查看:406
本文介绍了如何更改OpenShift控制台URL和API URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司运行由3个主节点和4个节点组成的OpenShift v3.10集群.我们想更改OpenShift API的URL以及OpenShift Web控制台的URL.要成功做到这一点,我们需要采取哪些步骤?

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?

我们已经尝试将o penshift_master_cluster_hostnameopenshift_master_cluster_public_hostname变量更新为新的DNS名称,这可以解析我们的F5虚拟主机,从而在主机之间负载均衡流量,然后开始升级Ansible剧本,但升级失败.我们还尝试过运行Ansible剧本来重新部署群集证书,但是在此步骤之后,OpenShift节点的状态将更改为NotReady.

We have already tried to update the openshift_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 playbook, but the upgrade fails. We have also tried to run the Ansible playbook which redeploys the cluster certificates, but after that step the OpenShift nodes status changes to NotReady.

推荐答案

我们已经解决了这个问题.我们要做的是更改清单文件中变量中定义的URL,然后执行ANSIBLE手册来更新主配置.官方文档中介绍了该剧本的运行过程.

We have solved this issue. What we had to do is to change the URL-s defined in the variables in the inventory file and then we executed the ANSIBLE playbook to update master configuration. The process of running that playbook is describe in the official documentation.

此后,我们还必须使用新的URL更新OpenShift Web控制台配置图,然后缩小并扩大Web控制台的部署. 此处介绍了有关如何更新网络控制台配置的过程. .

After that we also had to update the OpenShift Web Console configuration map with new URL-s and then scale down and scale up the web-console deployment. The process on how to update the configuration of the web-console is described here.

这篇关于如何更改OpenShift控制台URL和API URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆