Code Monkey home page Code Monkey logo

Comments (5)

frotsch avatar frotsch commented on August 17, 2024

I have the same issue with v0.14.0 although I include the kubeadmConfigPatchesJSON6902 thing

apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
networking:
  apiServerAddress: "0.0.0.0"

# add to the apiServer certSANs the name of the docker (dind) service in order to be able to reach the cluster through it
kubeadmConfigPatchesJSON6902:
  - group: kubeadm.k8s.io
    version: v1beta2
    kind: ClusterConfiguration
    patch: |
      - op: add
        path: /apiServer/certSANs/-
        value: docker
nodes:
  - role: control-plane
  - role: worker
  - role: worker

from examples.

BenTheElder avatar BenTheElder commented on August 17, 2024

you're hitting that with v0.14.0 because v1beta2 is no longer the current config version for kubeadm for that kubernetes version in the default image in v0.14.0 of kind, you can just drop the version field in this case since the field you're patching is stable across versions.

v0.11.1 has been a while, I don't recall what we changed to v0.12.0, but docker is not an expected hostname for the Kubernetes API cert under normal kind usage.

I don't have / use gitlab myself, but we accept PRs from users to update these.

from examples.

yidongw avatar yidongw commented on August 17, 2024

you're hitting that with v0.14.0 because v1beta2 is no longer the current config version for kubeadm for that kubernetes version in the default image in v0.14.0 of kind, you can just drop the version field in this case since the field you're patching is stable across versions.

v0.11.1 has been a while, I don't recall what we changed to v0.12.0, but docker is not an expected hostname for the Kubernetes API cert under normal kind usage.

I don't have / use gitlab myself, but we accept PRs from users to update these.

if docker is not an expected hostname, what is?

What is the config that I can try in my gitlab?

from examples.

dklimpel avatar dklimpel commented on August 17, 2024

My solution is:
kubectl config set-cluster kind --insecure-skip-tls-verify=true

from examples.

BenTheElder avatar BenTheElder commented on August 17, 2024

if docker is not an expected hostname, what is?

localhost, or the node name.

from examples.

Related Issues (11)

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.