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 2022/06/08 14:58:02 UTC

[GitHub] [openwhisk-deploy-kube] DanielLee343 commented on issue #683: Deployment fails on kubernetes using docker for windows

DanielLee343 commented on issue #683:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/683#issuecomment-1150033579

   Hi, I have a following question, my default service account seems to be there, but Im still stuck at `Error: pods "owdev-wskadmin" is forbidden: error looking up service account openwhisk/default: serviceaccount "default" not found`.
   ```
   [lyuze@storage-2 openwhisk-deploy-kube]$ docker ps
   CONTAINER ID   IMAGE                  COMMAND                  CREATED        STATUS        PORTS                       NAMES
   c3dba0af7943   kindest/node:v1.20.7   "/usr/local/bin/entr…"   19 hours ago   Up 11 hours                               kind-worker2
   2d142d00b1be   kindest/node:v1.20.7   "/usr/local/bin/entr…"   19 hours ago   Up 11 hours   0.0.0.0:31001->31001/tcp    kind-worker
   61ca9e93bbf6   kindest/node:v1.20.7   "/usr/local/bin/entr…"   19 hours ago   Up 11 hours   127.0.0.1:35501->6443/tcp   kind-control-plane
   [lyuze@storage-2 openwhisk-deploy-kube]$ helm install owdev ./helm/openwhisk -n openwhisk --create-namespace -f mycluster.yaml
   Error: INSTALLATION FAILED: failed to create resource: pods "owdev-wskadmin" is forbidden: error looking up service account openwhisk/default: serviceaccount "default" not found
   [lyuze@storage-2 openwhisk-deploy-kube]$ 
   [lyuze@storage-2 openwhisk-deploy-kube]$ kubectl get sa -n default
   NAME      SECRETS   AGE
   default   1         18h
   [lyuze@storage-2 openwhisk-deploy-kube]$ kubectl get sa -n openwhisk
   NAME            SECRETS   AGE
   owdev-core      0         84s
   owdev-init-sa   0         84s
   owdev-invoker   0         84s
   ```
   My mycluster.yaml:
   ```
   whisk:
     ingress:
       type: NodePort
       apiHostName: localhost
       apiHostPort: 31001
       apiHostProto: "https"
       useInternally: false
   
   nginx:
     httpsNodePort: 31001
   
   # disable affinity
   affinity:
     enabled: false
   toleration:
     enabled: false
   invoker:
     options: "-Dwhisk.kubernetes.user-pod-node-affinity.enabled=false"
     # must use KCF as kind uses containerd as its container runtime
     containerFactory:
       impl: "kubernetes"
   
   ```
   Any idea why? Thanks!


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org