Skip to content

Instantly share code, notes, and snippets.

@bradylove
Created February 2, 2018 23:01
Show Gist options
  • Save bradylove/a7b02f3e34d7d63c8fde245cab3920f4 to your computer and use it in GitHub Desktop.
Save bradylove/a7b02f3e34d7d63c8fde245cab3920f4 to your computer and use it in GitHub Desktop.
---
- op: add
path: /spec/containers/name=kube-controller-manager/command/1
value: "--flex-volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume"
- op: add
path: /spec/containers/name=kube-controller-manager/volumeMounts/1
value:
mountPath: /etc/kubernetes/kubelet-plugins/volume
name: flexvolume-mount
readOnly: true
- op: add
path: /spec/volumes/1
value:
hostPath:
path: /etc/kubernetes/kubelet-plugins/volume/
type: DirectoryOrCreate
name: flexvolume-mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment