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

Error on Helm deploy attempt. #649

Closed debonzi closed 3 years ago

debonzi commented 3 years ago

It looks like (I am new to it) that there is some issue with persistence configuration.

After failing to deploy I tried to create a .yaml file using helm and got the same error:

$ helm template owdev ./helm/openwhisk -n openwhisk -f mycluster.yaml --debug
install.go:172: [debug] Original chart version: ""
install.go:189: [debug] CHART PATH: /home/debonzi/devel/openwhisk-deploy-kube/helm/openwhisk

Error: template: openwhisk/templates/zookeeper-pvc-datalog.yaml:18:17: executing "openwhisk/templates/zookeeper-pvc-datalog.yaml" at <.Values.k8s.persistence.enabled>: nil pointer evaluating interface {}.persistence
helm.go:94: [debug] template: openwhisk/templates/zookeeper-pvc-datalog.yaml:18:17: executing "openwhisk/templates/zookeeper-pvc-datalog.yaml" at <.Values.k8s.persistence.enabled>: nil pointer evaluating interface {}.persistence

I am trying to deploy it on IKS. I believe I got everything right with IKS configuration. Following the mycluster.yaml file content:

whisk:
    ingress:
      apiHostName: openwhisk.debonzi.com
      apiHostPort: 443
      apiHostProto: https
      type: Standard
      domain: openwhisk.debonzi.com
      annotations:
        ingress.bluemix.net/proxy-read-timeout: "75s"
        ingress.bluemix.net/client-max-body-size: "size=50m"
        ingress.bluemix.net/proxy-add-headers: |
          serviceName=owdev-controller {
            'X-Request-ID' $request_id;
          }

invoker:
containerFactory:
    impl: kubernetes

k8s:
persistence:
    hasDefaultStorageClass: false
    explicitStorageClass: default

I am glad to help with any additional info. Thanks

debonzi commented 3 years ago

Found the issue. mycluster.yaml has wrong indentation.

invoker:
containerFactory:
    impl: kubernetes

k8s:
persistence:
    hasDefaultStorageClass: false
    explicitStorageClass: default

must be

invoker:
    containerFactory:
        impl: kubernetes

k8s:
    persistence:
        hasDefaultStorageClass: false
        explicitStorageClass: default

Sorry for any inconvinience