11.9.2. 将自定义路由器证书重新引入到集群中
重新引进自定义路由器证书:
-
编辑 Ansible 清单文件,以设置
openshift_master_overwrite_named_certificates=true
。 使用
openshift_hosted_router_certificate
参数指定证书的路径。openshift_master_overwrite_named_certificates=true openshift_hosted_router_certificate={"certfile": "/path/on/host/to/app-crt-file", "keyfile": "/path/on/host/to/app-key-file", "cafile": "/path/on/host/to/app-ca-file"} 1
进入 playbook 目录并运行以下 playbook:
$ cd /usr/share/ansible/openshift-ansible $ ansible-playbook playbooks/openshift-hosted/redeploy-router-certificates.yml