Portworx Daemonset failed to start

We are trying to run portworx on kubernetes installed on-premise and try to connect to VMWare for storage, followed instruction on this page: https://docs.portworx.com/cloud-references/auto-disk-provisioning/vsphere/#limiting-storage-nodes.

Portworx daemonset failed to start with following error:

@automate portworx[6536]: time=“2019-06-11T19:14:54Z” level=error msg=“open etcd-ca.crt: no such file or directory” func=InitAndBoot package=boot

@automate portworx[6536]: time=“2019-06-11T19:14:54Z” level=error msg=“open etcd-ca.crt: no such file or directory”

The etcd certs are mounted from kubernetes secret and it is under /etc/pwx/etcdcacerts folder inside the pod.

Not sure why this is happening.

Can anyone help?

Thanks,

Tiger

Once you have created your certificate, CA certificate and key, you need to copy them to a directory (eg etcd-secrets). You can then create a Kubernetes secret from them with:

kubectl -n kube-system create secret generic px-etcd-certs --from-file=etcd-secrets/

Verify it has been created correctly:

kubectl -n kube-system describe secret px-etcd-certs

Name:         px-etcd-certs
Namespace:    kube-system
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
etcd-ca.crt:      1679 bytes
etcd.crt:  1680 bytes
etcd.key:  414  bytes

Use the spec generator and select “Certificate Auth” under the etcd section, ensuring the filenames match those specified.

These instructions can also be found here.