Giter Club home page Giter Club logo

Comments (6)

simonswine avatar simonswine commented on May 14, 2024

Interesting issue, can you provide the cli flags you run your API server with?

It looks like you requiring cert auth against Kubernetes API

from kube-lego.

aledbf avatar aledbf commented on May 14, 2024

"the server has asked for the client to provide credentials"

this can be triggered by an invalid service account. Please check the certificate is not expired.

from kube-lego.

lukesmith avatar lukesmith commented on May 14, 2024

I use certs for all communication with the API server.

I can't see a way to use certs, or use a kubeconfig file, with kube-lego if it's possible?

My kube api flags are

          image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
          command:
          - /hyperkube
          - apiserver
          - --bind-address=0.0.0.0
          - --etcd-servers=https://127.0.0.1:2379
          - --allow-privileged=true
          - --service-cluster-ip-range=10.3.0.0/24
          - --secure-port=443
          - --advertise-address={{.node.ip_v4.private}}
          - --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
          - --tls-cert-file=/etc/kubernetes/ssl/apiserver.pem
          - --tls-private-key-file=/etc/kubernetes/ssl/apiserver-key.pem
          - --client-ca-file=/etc/kubernetes/ssl/ca.pem
          - --service-account-key-file=/etc/kubernetes/ssl/apiserver-key.pem
          - --runtime-config=extensions/v1beta1=true,extensions/v1beta1/networkpolicies=true
          - --etcd-cafile=/etc/ssl/etcd/ca.pem
          - --etcd-certfile=/etc/ssl/etcd/etcd.pem
          - --etcd-keyfile=/etc/ssl/etcd/etcd-key.pem

from kube-lego.

simonswine avatar simonswine commented on May 14, 2024

@lukesmith have you tried to mount a kubeconfig file using a secret to /root/.kube/config?

It think this is preventing it from working: https://github.com/jetstack/kube-lego/blob/master/pkg/kubelego/kube.go#L23

But it would be good to make that work..

from kube-lego.

lukesmith avatar lukesmith commented on May 14, 2024

Mounting a kubeconfig file to /root/.kube/config causes the same error.

from kube-lego.

luohoufu avatar luohoufu commented on May 14, 2024

i have the save error. how to fix.
kube-error.txt

from kube-lego.

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.