Skip to content

Enable kubelet-registration-probe mode in node-driver-registrar in Windows & Linux #830

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

Conversation

mauriciopoppe
Copy link
Member

@mauriciopoppe mauriciopoppe commented Aug 30, 2021

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind feature

What this PR does / why we need it:
Adds support for kubernetes-csi/node-driver-registrar#152 on Windows & Linux nodes, I tried patching previous releases to remove the probe configuration because it was introduced in node-driver-registrar v2.3.0

The output for kustomize build deploy/kubernetes/overlays/stable-1-19 is ok (liveness probe should be removed because the version is less than v2.3.0):

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: csi-gce-pd-node-win
  namespace: gce-pd-csi-driver
spec:
  selector:
    matchLabels:
      app: gcp-compute-persistent-disk-csi-driver
  template:
    metadata:
      labels:
        app: gcp-compute-persistent-disk-csi-driver
    spec:
      containers:
      - args:
        - --v=5
        - --csi-address=unix://C:\\csi\\csi.sock
        - --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\csi.sock
        env:
        - name: KUBE_NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
        name: csi-driver-registrar
        volumeMounts:
        - mountPath: /csi
          name: plugin-dir
        - mountPath: /registration
          name: registration-dir

Also the output for kustomize build deploy/kubernetes/overlays/stable is ok:

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: csi-gce-pd-node-win
  namespace: gce-pd-csi-driver
spec:
  selector:
    matchLabels:
      app: gcp-compute-persistent-disk-csi-driver
  template:
    metadata:
      labels:
        app: gcp-compute-persistent-disk-csi-driver
    spec:
      containers:
      - args:
        - --v=5
        - --csi-address=unix://C:\\csi\\csi.sock
        - --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\csi.sock
        env:
        - name: KUBE_NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.3.0
        livenessProbe:
          exec:
            command:
            - /csi-node-driver-registrar.exe
            - --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\csi.sock
            - --mode=kubelet-registration-probe
          initialDelaySeconds: 3
        name: csi-driver-registrar
        volumeMounts:
        - mountPath: /csi
          name: plugin-dir
        - mountPath: /registration
          name: registration-dir

Does this PR introduce a user-facing change?:

NONE

/cc @jingxu97 @msau42

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 30, 2021
@mauriciopoppe
Copy link
Member Author

/retest
/test pull-gcp-compute-persistent-disk-csi-driver-e2e-win2019

@mauriciopoppe
Copy link
Member Author

@jingxu97 after a discussion with the managed PD CSI team this PR is updating files that are obsolete (stable overlay), for the other overlays I think that the output is ok as shown in the description

/cc @saikat-royc

@mauriciopoppe mauriciopoppe force-pushed the enable-node-driver-registrar-probe branch from dacb7ad to f9061de Compare October 20, 2021 23:06
@jingxu97
Copy link
Contributor

update the title and commit message?

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 20, 2021
@mauriciopoppe mauriciopoppe changed the title Enable kubelet-registration-probe mode in node-driver-registrar in Windows Enable kubelet-registration-probe mode in node-driver-registrar in Windows & Linux Oct 20, 2021
@jingxu97
Copy link
Contributor

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 20, 2021
@mauriciopoppe
Copy link
Member Author

update the title and commit message?

done, thanks :)

@saikat-royc
Copy link
Member

saikat-royc commented Oct 20, 2021

stable folder is deprecated, instead stable-{minor version}, stable-master should be updated.

@mauriciopoppe
Copy link
Member Author

stable-master is already using v2.3.0 added in #828, @saikat-royc I can remove the change in stable/ if needed

@mauriciopoppe
Copy link
Member Author

/retest

@saikat-royc
Copy link
Member

saikat-royc commented Oct 20, 2021

/hold

We should added the changes to prow overlays first and ensure the prow runs suceeded. And when the tests are green, we also need to add to stable-master and other stable-* overlays.

Update: I see this PR is removing the probe from stable overlays, so all good. Can you add to stable-master overlay also? @mauriciopoppe

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 20, 2021
@mauriciopoppe mauriciopoppe force-pushed the enable-node-driver-registrar-probe branch from 9a76a14 to 3e5dca3 Compare October 20, 2021 23:53
@mauriciopoppe mauriciopoppe force-pushed the enable-node-driver-registrar-probe branch from 3e5dca3 to 1ae756a Compare October 20, 2021 23:54
@mauriciopoppe
Copy link
Member Author

@saikat-royc I've added no-node-driver-registrar-probe.yaml to stable-master too, please take a look

@saikat-royc
Copy link
Member

we should add the no-node-driver-registrar-probe.yaml for prow rc overlays which dont have 2.3.0 registrar

@mauriciopoppe
Copy link
Member Author

in its definition I saw that the prow-gke-release overlays are pulling resources from stable so changes might not be needed, I've verified that running:

kustomize build deploy/kubernetes/overlays/prow-gke-release-staging-rc-1-18
kustomize build deploy/kubernetes/overlays/prow-gke-release-staging-rc-1-19

Result in a manifest without the livenessProbe part

@saikat-royc
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 4, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jingxu97, mauriciopoppe, saikat-royc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jingxu97,saikat-royc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@saikat-royc
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 4, 2021
@k8s-ci-robot k8s-ci-robot merged commit 4fd0412 into kubernetes-sigs:master Nov 4, 2021
@mauriciopoppe mauriciopoppe mentioned this pull request Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants