How to move nfs info to kubernetes patch file?

10/28/2019

If I have under volumes

name: nfslocation
      nfs:
        server: 10.1.1.3
        path: /vol/vol104/ostntfs0/folder/folder2

And I want to move it to a patch file, how do I do that?

-op: replace
...

I am not clear on the format.

Something like

-op: replace
  path: /spec/template/spec/volumes/0/...

We use kustomization...

-- archcutbank
kubernetes
kustomize

1 Answer

10/30/2019
- op: replace
  path: /spec/template/spec/volumes/4/nfs/server
  value: 10.1.1.3
- op: replace
  path: /spec/template/spec/volumes/4/nfs/path
  value: /vol/vol104/ostntfs0/folder/folder2

This worked out for me...

-- archcutbank
Source: StackOverflow