Coder Social home page Coder Social logo

Comments (6)

codespearhead avatar codespearhead commented on July 30, 2024 1

Nice!

Can you close this issue then?

from okd.

codespearhead avatar codespearhead commented on July 30, 2024

The log says:

[tls] certificate is valid for *.apps.oc.domain.tld, *.oc.domain.tld, oc.domain.tld, not login.domain.tld

So you have to generate a new SSL certificate that includes login.domain.tld

from okd.

CamZie avatar CamZie commented on July 30, 2024

@codespearhead thanks for the tip. However "login.domain.tld" is the URL of our SSO. This is running on an external server with its own Let's Encrypt certificate.

I think this issue is most probably an issue with how the domain is being resolved, because we are getting the following errors in the DNS:

dns-default-9x8qn       linux/amd64, go1.20.12 X:strictfipsruntime, 
dns-default-9x8qn       [INFO] 10.128.0.100:39274 - 64042 "A IN login.domain.tld.oc.domain.tld. udp 63 false 1232" - - 0 6.002317855s
dns-default-9x8qn       [ERROR] plugin/errors: 2 login.domain.tld.oc.domain.tld. A: read udp 10.128.0.39:46929->9.9.9.9:53: i/o timeout
dns-default-9x8qn       [INFO] 10.128.0.121:32824 - 32981 "A IN infogw.api.openshift.com.oc.domain.tld. udp 74 false 1232" - - 0 6.001218683s
dns-default-9x8qn       [ERROR] plugin/errors: 2 infogw.api.openshift.com.oc.domain.tld. A: read udp 10.128.0.39:39464->9.9.9.9:53: i/o timeout
dns-default-9x8qn       [INFO] 10.128.0.47:53644 - 40718 "A IN api.oc.domain.tld. udp 53 false 1232" - - 0 6.002321304s
dns-default-9x8qn       [ERROR] plugin/errors: 2 api.oc.domain.tld. A: read udp 10.128.0.39:38144->9.9.9.9:53: i/o timeout

Somehow whenever it checks an external FQDN for .e.g infogw.api.openshift.com / login.domain.tld it checks the following instead infogw.api.openshift.com.oc.domain.tld / login.domain.tld.oc.domain.tld which is always appending the base domain of our cluster at the end.

from okd.

codespearhead avatar codespearhead commented on July 30, 2024

Show us what base domain is set in your cluster.

  1. Log into the cluster:
oc login --server=<your-cluster-api-url> -u <username> -p <password>
  1. Output its base domain:
oc get ingresses.config.openshift.io cluster -o jsonpath='{.spec.domain}'

from okd.

CamZie avatar CamZie commented on July 30, 2024

This is the output of the command. The domain.tld is used to replace the real domain.

$ oc get ingresses.config.openshift.io cluster -o jsonpath='{.spec.domain}'

apps.oc.domain.tld

from okd.

CamZie avatar CamZie commented on July 30, 2024

I managed to find out the cause. It looks like the /etc/resolv.conf of the host has the search parameter configured, which is the reason why the base domain of the cluster is always appending on every DNS queries on the cluster.

# Generated by NetworkManager
###search  oc.domain.tld
nameserver .....

I removed this parameter and it works.

from okd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.