Chapter VII of the nine analysis with you all the fun rancher - line and custom domain name

This series of articles:


Chapter One:Nine analysis with you all the fun rancher - Installation Guide

Chapter II: nine analyze with you all the fun rancher - Import Cluster articles

Chapter 3: nine analyze with you all the fun rancher - Integrated gitlab

Chapter 4: nine analyze with you all the fun rancher - Integrated harbor

Chapter V: nine analyze with you all the fun rancher - line publishing

Chapter 6: nine analyze with you all the fun rancher - require 'docker login'

table of Contents

Description of the problem

2 Problem Solving


Description of the problem

        When using the rancher release pipeline is due gitlab custom domain name (such as jiuxi.gitlab.com), resulting in the publishing process pipeline will always report DNS errors:

Could not resolve host: jiuxi.gitlab.com

image.png


2 Problem Solving

        Positioning rancher coredns configmap where the project is generally System:image.png

        Select coredns configmap, select "Upgrade" menu:

clipboard8.png

        Add Custom DNS records:

hosts {

   10.110.101.100 jiuxi.harbor.org jiuxi.gitlab.com jiuxi.nexus.com

   fallthrough

}

clipboard7.png

        And then select the "workload":clipboard9.png

        Select "coredns":

clipboard9.png        Select coredns the pod, you can delete (coredns controller automatically rebuilds):

clipboard8.png

        Since then, the pipeline custom domain relaxed after blasting.

Guess you like

Origin blog.51cto.com/14625168/2465497