apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
302 stars 232 forks source link

Cannot create cluster; joining worker node failed #656

Closed Sayeed42 closed 3 years ago

Sayeed42 commented 3 years ago

I am running kind version 0.9.0 on CentOS 8. The command kind create cluster works fine. But, when I try to execute kind create cluster --config kind-cluster.yaml it fails to join worker nodes. Is there anything I am doing wrong? image

dgrove-oss commented 3 years ago

Whats the contents of your kind-cluster.yaml?

Sayeed42 commented 3 years ago

It was as given in the kind setup instructions. Here it is:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
  extraPortMappings:
    - hostPort: 31001
      containerPort: 31001
- role: worker
Sayeed42 commented 3 years ago

Hello, can I get some help regarding what I need to change here?

dgrove-oss commented 3 years ago

I suspect the problem is specific to your CentOS 8 environment. The command kind create cluster --config kind-cluster.yaml using the cluster.yaml from the README works just fine for me on MacOS (Catalina) using kind 0.9.0 and Docker for Desktop 2.5.x. It also works on our TravisCI environments (kind 0.9.0 and Ubuntu 16.04).

You might be able to get help by asking at the kind project (https://github.com/kubernetes-sigs/kind). There is nothing OpenWhisk specific in trying to create the kind cluster, so it seems like the kind community should be able to help.

Sayeed42 commented 3 years ago

Hello, Just wanted to update you that, I deployed Openwhisk successfully. The particular problem I was having was solved by simply restarting the docker. If someone is still stuck, they can try flushing the iptable too. Thanks.