2

I have a three node cluster k8s which has been setup via kubeadm, I just heard about juju recently and I’m completely new. what I want is that to register my local k8s into my local juju node but as long as I go for registration I come across the following error.

nasri@juju:~$ add-k8s kubeadm-cluster --storage=openebs-hostpath

here I can see juju is trying to connect to 10.96.39.217 where as it is a ClusterIP thus it is private and inaccessible from my machine, but why? after a period it ends up with the error that cannot access to the k8s.

nasri@juju:~$ juju bootstrap kubeadm-cluster
Creating Juju controller “kubeadm-cluster” on kubeadm-cluster
Fetching Juju Dashboard 0.3.0
Creating k8s resources for controller “controller-kubeadm-cluster”
Starting controller pod
Bootstrap agent now started
Contacting Juju controller at 10.96.39.217 to verify accessibility…
ERROR unable to contact api server after 1 attempts: dial tcp 10.96.39.217:17070: i/o timeout
PjoterS
  • 12,841
  • 1
  • 22
  • 54
  • Having the same problem. Juju tries to connect via ClusterIP, this will NEVER work! Wondering who built this tool! – iptizer Nov 22 '20 at 16:33
  • Could you elaborate what you want to achieve? It must be kubeadm or it might be something else as juju docs have tutorial but it's using [MicroK8s with Juju](https://juju.is/docs/getting-started-with-juju) ? ClusterIP is reachable only inside cluster. If you want to reach it outside cluster you have to use `Ingress` or `NodePort` service or `LoadBalancer` service. Please provide all your steps to replicate this issue. – PjoterS Nov 23 '20 at 10:30
  • @PjoterS , microk8s is specific to ubuntu. I have a kubernetes cluster that I want to add it to juju as a juju controller, and thus juju can control my k8s cluster and deploy my application through charms. if you are aware of juju and juju controllers, you'd understand. – AliReza NaSRi Nov 23 '20 at 11:52

0 Answers0