You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/03/27 07:44:39 UTC

[GitHub] [openwhisk-deploy-kube] shiipou edited a comment on issue #311: controller and invoker pods are stuck in PodInitializing

shiipou edited a comment on issue #311: controller and invoker pods are stuck in PodInitializing
URL: https://github.com/apache/openwhisk-deploy-kube/issues/311#issuecomment-604859169
 
 
   I've got the same error : 
   ```logs
   2020/03/27 07:43:16 [emerg] 1#1: host not found in resolver "kube-dns.kube-system" in /etc/nginx/nginx.conf:42
   nginx: [emerg] host not found in resolver "kube-dns.kube-system" in /etc/nginx/nginx.conf:42
   ```
   
   Here my installation :
   
   - os: debian 10
   - Kubernetes v1.17.4
   
   As root ($USER is the user I want to set docker group and not env var)
   ```sh
   curl -sSL https://get.docker.com/ | sudo bash
   sudo usermod -aG docker $USER
   curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
   add-apt-repository "deb https://apt.kubernetes.io/ kubernetes-xenial main"
   apt-get update
   apt-get install -y kubectl kubeadm kubelet
   apt-mark hold kubelet kubeadm kubectl
   echo "1" > /proc/sys/net/ipv4/ip_forward
   swapoff -a
   sed -i -r 's/^(\S+\s+swap\s+.*)$/#\1/' /etc/fstab
   kubeadm init --pod-network-cidr=192.168.0.0/16
   ```
   
   As $USER
   ```
   mkdir -p /home/$USER/.kube
   cp /etc/kubernetes/admin.conf /home/$USER/.kube/config
   chown $USER:$USER /home/$USER/.kube -R
   kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc6/aio/deploy/recommended.yaml
   kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
   
   git clone https://github.com/apache/openwhisk-deploy-kube.git
   cd git clone openwhisk-deploy-kube
   
   echo "whisk:
     ingress:
       type: NodePort
       apiHostName: 192.168.65.3
       apiHostPort: 31001
   nginx:
     httpsNodePort: 31001
   k8s:
     dns: kube-dns.kube-system" > custom_values.yml
   
   kubectl create namespace openwhisk
   helm install openwhisk ./helm/openwhisk --namespace=openwhisk -f ./custom_values.yml
   ```
   
   Here the output of `kubectl get services -n kube-system` taht I use to set the value of `k8s.dns` : 
   ```logs
   NAME       TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)                  AGE
   kube-dns   ClusterIP   10.96.0.10   <none>        53/UDP,53/TCP,9153/TCP   42h
   ```
   
   I think the helm installation wasn't set the cluster role binding. Without that role, the openwhisk pods can't call other namespaces pods.
   
   I'm wrong ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services