Giter Site home page Giter Site logo

kube_ssl's Introduction

Kubernetes SSL Approver

Diagram

alt text

Reason

  • deploy kubernetes via kubeadm when using ssl mode, the ssl cert must be created and configured with IPSAN to avoid in breaking tls verification (metrics-server etc.)

Target

  • new node will make a csr request with IPSANs or custom cert etc... and approved by kubernetes CA

How to

  • This api will run on master, and uses apiserver-kubelet-client cert/key to authentication/authorization with api server

  • On the new node worker with cfssl installed +

      cat <<EOF | cfssl genkey - | cfssljson -bare server
      {
        "hosts": [
          "192.168.33.13"
        ],
        "CN": "192.168.33.13",
        "key": {
          "algo": "ecdsa",
          "size": 256
        }
      }
      EOF
    
      cat > server.json << EOF 
      {
      	"nodename": "192.168.33.13",
      	"nodeip": "192.168.33.13",
      	"csrdata": $(cat server.csr) |base64 | tr -d "\n"
      }
      EOF
    
  • Recheck the cert:

    • openssl x509 -in server.crt -text -noout
  • Check the certificate approved or not

    • kubectl get csr

Build

  • install glide
  • glide up
  • CGO_ENABLED=0 env GOOS=linux go build

kube_ssl's People

Contributors

suker200 avatar

Watchers

James Cloos avatar  avatar  avatar

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.