The configuration process

Download Application Templates

curl -O https://raw.githubusercontent.com/openshift/openshift-ansible/master/roles/openshift_hosted_templates/files/v3.7/origin/ registry-console.yaml

Create services using templates

oc create -n default -f registry-console.yaml

Switching projects (namespaces)

oc project default

Create an

Oc new app - n default - the template = registry - the console \ param OPENSHIFT_OAUTH_PROVIDER_URL = "https://192.168.99.100:8443" \ - param REGISTRY_HOST = docker - registry - default. 192.168.99.100. Nip. IO \ param COCKPIT_KUBE_URL = https://registry-console-default.192.168.99.100.nip.io

Parameter issues:

warning: –param no longer accepts comma-separated lists of values. https://github.com/openshift/… The new version of the OC command no longer supports comma-separated arguments and must use either -p or –param for each set of key-value pair arguments

After the execution will pull cockpit/kubernetes: latest image, this process needs a little time. We can see the event in the monitor:

Some of the built-in projects are not visible to the Web Console. To view all of the projects as a user of Developer, execute: OC ADM Policy Add-Cluster-Role to User Cluster-Admin Developer grants Developer Cluster Administrator privileges.

Add the routing

Oc create route passthrough - service registry - the console - the hostname registry - the console - default. 192.168.99.100. Nip. IO - n default

As shown in the figure above, after adding the route, we see the created route rule in Default >> Services.

Finally, type https://registry-console-defa in your browser… Enter the Registry Console to manage the control Console

The resources

  • https://ipaas.com.cn/blog/pos…
  • https://v.qq.com/x/page/x0546…