Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rootless docker, kind does not support yet] ERROR: failed to create cluster: failed to generate kubeadm config content..... #2183

Closed
marcofranssen opened this issue Apr 6, 2021 · 4 comments
Assignees
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@marcofranssen
Copy link

marcofranssen commented Apr 6, 2021

What happened:

Adding kind directory to PATH...
Adding kubectl directory to PATH...
kind v0.10.0 go1.15.7 linux/amd64
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.1", GitCommit:"206bcadf021e76c27513500ca24182692aabd17e", GitTreeState:"clean", BuildDate:"2020-09-09T11:26:42Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
Creating kind cluster...
Creating cluster "chart-testing" ...
 • Ensuring node image (kindest/node:v1.18.15) 🖼  ...
 ✓ Ensuring node image (kindest/node:v1.18.15) 🖼
 • Preparing nodes 📦   ...
 ✓ Preparing nodes 📦 
 • Writing configuration 📜  ...
 ✗ Writing configuration 📜
ERROR: failed to create cluster: failed to generate kubeadm config content: failed to get kubernetes version from node: failed to get file: command "docker exec --privileged chart-testing-control-plane cat /kind/version" failed with error: exit status 1

What you expected to happen:

The kind cluster successfully starts

How to reproduce it (as minimally and precisely as possible):

We are running a self hosted Github Actions runner with following configuration:

  • Ubuntu 20.04
  • Rootless docker (20.10.5) installation
  • Following packages installed:
    • awscli
    • jq
    • curl
    • wget
    • git
    • uidmap
    • build-essential
    • unzip

The workflow looks like this:

name: Helm CI

on:
  push:
  pull_request:

jobs:
  test:
    name: Test
    runs-on: [self-hosted]

    strategy:
      fail-fast: false
      matrix:
        k8s:
          - v1.17.17
          - v1.18.15
          - v1.19.7
          - v1.20.2

    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
        with:
          fetch-depth: 0

      - name: Set up Helm
        uses: azure/setup-helm@v1
        with:
          version: v3.5.0

      - name: Set up Python
        uses: actions/setup-python@v2.2.1
        with:
          python-version: 3.7

      - name: Setup chart-testing
        uses: helm/chart-testing-action@v2.0.1
        with:
          version: v3.3.1

      - name: Create kind ${{ matrix.k8s }} cluster
        uses: helm/kind-action@v1.1.0
        with:
          version: v0.10.0
          node_image: kindest/node:${{ matrix.k8s }}

Anything else we need to know?:

  • All k8s versions fail with the same error.
  • Rootless Docker installation

Environment:

  • kind version: (use kind version): v0.10.0
  • Kubernetes version: (use kubectl version): v1.19.1
  • Docker version: (use docker info): 20.10.5
  • OS (e.g. from /etc/os-release): ubuntu-20.04
@marcofranssen marcofranssen added the kind/bug Categorizes issue or PR as related to a bug. label Apr 6, 2021
@BenTheElder
Copy link
Member

Rootless docker requires kind at head. Please see: https://kind.sigs.k8s.io/docs/user/rootless/

@BenTheElder BenTheElder self-assigned this Apr 6, 2021
@BenTheElder BenTheElder changed the title ERROR: failed to create cluster: failed to generate kubeadm config content..... [rootless docker, kind does not support yet] ERROR: failed to create cluster: failed to generate kubeadm config content..... Apr 6, 2021
@BenTheElder BenTheElder added kind/support Categorizes issue or PR as a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Apr 6, 2021
@BenTheElder
Copy link
Member

Also worth noting that Kubernetes doesn't support rootless at all in any version, kind however will employ workarounds in the next release, detailed in the docs.

@marcofranssen
Copy link
Author

@BenTheElder when will this release be expected? Unfortunately the GH action I'm using doesn't support pulling kind from HEAD I guess.

@BenTheElder
Copy link
Member

BenTheElder commented Apr 7, 2021

Probably next week when I am back from vacation and we finish #2176. We support go get but I don't know anything about this action. No guarantees that it will work then either, rootless is very new, I think the Ubuntu kernel will be too old for nested container rootless. You can manually test perhaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

2 participants