Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we need a liveness probe for the "csi-node-driver-registrar" container? #176

Open
fradeve opened this issue May 31, 2023 · 1 comment

Comments

@fradeve
Copy link

fradeve commented May 31, 2023

Some of my pods are suddenly losing connection with a "socket not connected" error.

I started to look into the behaviour of the csi-gcs DaemonSet and I noticed this in the logs of csi-node-driver-registrar:

Lost connection to unix:///csi/csi.sock.

which seems to be related to the "socket" error that I mentioned above.

I went on to read the docs for node-driver-registrar and noticed the following in their README:
https://github.com/kubernetes-csi/node-driver-registrar#health-check-with-an-exec-probe

  containers:
    - name: csi-driver-registrar
      image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
      args:
        - "--v=5"
        - "--csi-address=/csi/csi.sock"
        - "--kubelet-registration-path=/var/lib/kubelet/plugins/<drivername.example.com>/csi.sock"
      livenessProbe:
        exec:
          command:
          - /csi-node-driver-registrar
          - --kubelet-registration-path=/var/lib/kubelet/plugins/<drivername.example.com>/csi.sock
          - --mode=kubelet-registration-probe
        initialDelaySeconds: 30
        timeoutSeconds: 15

But this is how the csi-node-driver-registrar looks like in https://github.com/ofek/csi-gcs/blob/master/deploy/base/daemonset.yaml#L22 (i.e. without a livenessprobe).

So my questions boil down to:

  1. is it worth adding a liveness probe to the csi-node-driver-registrar container?
  2. is there any specific reason for using Node-Driver-Registrar 1.2.0 when 2.8.0 is available?

As always, thanks for bringing csi-gcs to life! 🙏

@fradeve
Copy link
Author

fradeve commented Jun 7, 2023

If a livenessprobe is something that can be interesting to the project, I am happy to open a PR! 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant