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

Unable to make the gitlab example work #1

Open
svinther opened this issue Sep 13, 2022 · 0 comments
Open

Unable to make the gitlab example work #1

svinther opened this issue Sep 13, 2022 · 0 comments

Comments

@svinther
Copy link

I enjoy using minikube a lot, and I use it for CI at github.com with no problems. I really like to be able to do CI stuff on gitlab as well, but so far no luck with that.

At first the minikube binary will not even run in the Alpine container, so I added libc6-compat

Then I got:
X Exiting due to RSRC_INSUFFICIENT_CORES: Requested cpu count 1 is less than the minimum allowed of 2

Then I changed the minikube start command to
./minikube start --extra-config=kubeadm.ignore-preflight-errors=NumCPU --force --cpus=1

And now it seems to hang forever, last trace line:
! Listening to 0.0.0.0 on external docker host docker. Please be advised

Here is the full modified .gitlab-ci.yml

image: docker:stable
variables:
  KUBECTL: v1.17.0
services:
  - docker:dind
stages:
  - test
test:
  stage: test
  script:
    - apk add -U wget libc6-compat
    - wget -O ./minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    - chmod +x ./minikube
    - wget -O ./kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL}/bin/linux/amd64/kubectl
    - chmod +x ./kubectl
    - ./minikube start --extra-config=kubeadm.ignore-preflight-errors=NumCPU --force --cpus=1
    - ./kubectl get nodes -o wide
    - ./kubectl get pods --all-namespaces -o wide
    - ./kubectl get services --all-namespaces -o wide

Any ideas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant