You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2010/01/01 00:01:01 UTC

[slack-digest] [2022-06-23] #general

2022-06-23 21:02:07 UTC - Alessandro Parrino: Good evening I am trying to deploy OpenWhisk in a Kubernetes v1.22.10 cluster. I am currently using a private docker registry (Google Container Registry) to pull images.
I am using the latest version of the repository openwhisk-deploy-kube (Last commit Jun 23, 2022)

Everything is running as expected except for the Jobs gen-certs that fail due to using ssl in the genssl.sh script and install-packages Pod due to connections problems.

This is the configuration that I used:
```whisk:
  ingress:
    apiHostName: "&lt;my_apihostname&gt;"

# I Have only 1 Worker Node
invoker:
  options: "-Dwhisk.kubernetes.user-pod-node-affinity.enabled=false"

affinity:
  enabled: false

toleration:
  enabled: false

docker:
  registry:
    name: "&lt;Private docker registry&gt;"
    username: "&lt;my_user&gt;"
    password: "&lt;my_passw&gt;"```
gen-certs Pod logs:
```alessandro@alessandro-HP:~$ kubectl logs -f owdev-gen-certs-2rzbf -n openwhisk
Error from server (NotFound): secrets "owdev-nginx" not found
generating new owdev-nginx secret
generating server certificate request
Can't load /root/.rnd into RNG
140128761098688:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd
req: Hit end of string before finding the equals.
problems making Certificate Request```
install-packages Pod logs:
```alessandro@alessandro-HP:~$ kubectl logs -f owdev-install-packages-5nv2s -n openwhisk
Cloning into 'openwhisk'...
/openwhisk /
Note: checking out 'c5970a657a3070e9964cb14715b9df31819d3b75'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b &lt;new-branch-name&gt;

HEAD is now at c5970a65 Update npm version for ow-utils docker (#5261)
/
/openwhisk/ansible/roles/routemgmt/files /
Installing apimgmt package
error: Package update failed: Put "<http://owdev-nginx.openwhisk.svc.cluster.local:80/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true>": dial tcp 10.43.169.125:80: connect: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get "<http://owdev-nginx.openwhisk.svc.cluster.local:80/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false>": dial tcp 10.43.169.125:80: connect: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get "<http://owdev-nginx.openwhisk.svc.cluster.local:80/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false>": dial tcp 10.43.169.125:80: connect: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get "<http://owdev-nginx.openwhisk.svc.cluster.local:80/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false>": dial tcp 10.43.169.125:80: connect: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get "<http://owdev-nginx.openwhisk.svc.cluster.local:80/api/v1/namespaces/whisk.system/packages/routemgmt>": dial tcp 10.43.169.125:80: connect: connection refused
Deleting apimgmt actions
[...]```
Pods status:
```alessandro@alessandro-HP:~$ kubectl get pods -n openwhisk
NAME                                     READY   STATUS      RESTARTS   AGE
owdev-alarmprovider-5b7dcf569d-z4sgl     1/1     Running     0          29m
owdev-apigateway-6ff44c5897-fcp4r        1/1     Running     0          29m
owdev-controller-0                       1/1     Running     0          29m
owdev-couchdb-754cd56f5d-2p8xv           1/1     Running     0          29m
owdev-gen-certs-2rzbf                    0/1     Error       0          29m
owdev-gen-certs-5nmvq                    0/1     Error       0          29m
owdev-gen-certs-fgq7q                    0/1     Error       0          29m
owdev-gen-certs-n76hr                    0/1     Error       0          29m
owdev-init-couchdb-vn8ct                 0/1     Completed   0          29m
owdev-install-packages-bzmc4             0/1     Error       0          29m
owdev-install-packages-c2dtk             1/1     Running     0          40s
owdev-install-packages-qjw45             0/1     Error       0          17m
owdev-install-packages-zk4x6             0/1     Error       0          9m31s
owdev-invoker-0                          1/1     Running     0          29m
owdev-kafka-0                            1/1     Running     0          29m
owdev-kafkaprovider-674774d9bc-f4z7l     1/1     Running     0          29m
owdev-nginx-dc49b65b8-t7lrc              0/1     Init:0/1    0          29m
owdev-redis-586f866f9f-pzzk8             1/1     Running     0          29m
owdev-wskadmin                           1/1     Running     0          29m
owdev-zookeeper-0                        1/1     Running     0          29m
wskowdev-invoker-00-5-prewarm-nodejs14   1/1     Running     0          6m26s```
I am a beginner in kubernetes, if any information is missing please let me know, it would be kind if someone would know how to solve this problem, thank you.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1656018127975279
----