GithubHelp home page GithubHelp logo

how to add extra pki dnsname about rke HOT 8 CLOSED

rancher avatar rancher commented on July 29, 2024 1
how to add extra pki dnsname

from rke.

Comments (8)

HighwayofLife avatar HighwayofLife commented on July 29, 2024 1

Submitted a PR #433 -- Looking for feedback from you guys. Thanks!

from rke.

alerosso avatar alerosso commented on July 29, 2024 1

with the version 0.2.2 seems that the extra sans are not anymore added.

cluster.yml:

authentication:
      strategy: x509
      sans: 
        - "207.154.234.236"

openssl x509 -in kube-apiserver.pem -text -noout

DNS:localhost, DNS:kubernetes, DNS:kubernetes.default, DNS:kubernetes.default.svc, DNS:kubernetes.default.svc.cluster.local, IP Address:192.168.12.10, IP Address:192.168.12.11, IP Address:192.168.12.16, IP Address:127.0.0.1, IP Address:10.43.0.1

from rke.

galal-hussein avatar galal-hussein commented on July 29, 2024

Currently we are using host's address, internal address, and hostname as values for pki alt names and ips, but we don't allow for extra names or ips at the moment, we will consider adding custom IPs and DNS Names to the kube api certificate

from rke.

colinlabs avatar colinlabs commented on July 29, 2024

@galal-hussein hi guys, this feature will be usefully, by the default ,we can't add more ips to kube api certificate, so when we connect to apiserver with loadbalance ip, it can't work. we hope that this feature could be implemente As soon as possible, thanks you!

from rke.

HighwayofLife avatar HighwayofLife commented on July 29, 2024

Another voice for requesting this ability/feature, we could use additional flags for hostnames or IPs to add to the kube api certificate so that we're able to use a load balancer for all master nodes.

from rke.

rossedman avatar rossedman commented on July 29, 2024

+1 to this. Would like to have master nodes load balanced and not exposed publicly. Would be best to be able to add SANs to configuration.

Maybe something like this?

authentication:
  strategy: x509
  controlplane_sans:
    - my.loadbalancer.com

from rke.

galal-hussein avatar galal-hussein commented on July 29, 2024

I can confirm with latest master that i extra sans were added to the kubeapi certificate:

 DNS:my-loadbalancer-1234567890.us-west-2.elb.amazonaws.com, DNS:localhost, DNS:kubernetes, DNS:kubernetes.default, DNS:kubernetes.default.svc, DNS:kubernetes.default.svc.cluster.local, IP Address:159.65.47.98, IP Address:159.65.253.200, IP Address:167.99.61.54, IP Address:10.18.160.10, IP Address:127.0.0.1, IP Address:10.233.0.1

from rke.

lukeskywlkr avatar lukeskywlkr commented on July 29, 2024

with the version 0.2.2 seems that the extra sans are not anymore added.

cluster.yml:

authentication:
      strategy: x509
      sans: 
        - "207.154.234.236"

openssl x509 -in kube-apiserver.pem -text -noout

DNS:localhost, DNS:kubernetes, DNS:kubernetes.default, DNS:kubernetes.default.svc, DNS:kubernetes.default.svc.cluster.local, IP Address:192.168.12.10, IP Address:192.168.12.11, IP Address:192.168.12.16, IP Address:127.0.0.1, IP Address:10.43.0.1

I have the same issue

from rke.

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.