0

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...

Jonas
  • 121,568
  • 97
  • 310
  • 388
archcutbank
  • 419
  • 1
  • 6
  • 17
  • Take a look at this tutorial https://kustomize.io/tutorial It will help you to generate proper patch file from the base yaml. – mario Oct 28 '19 at 18:38

1 Answers1

1
- 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
  • 419
  • 1
  • 6
  • 17