Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JonathanBowker/53853342de14dcbe856cec13bd2f0a74 to your computer and use it in GitHub Desktop.
Save JonathanBowker/53853342de14dcbe856cec13bd2f0a74 to your computer and use it in GitHub Desktop.
Under spec.containers.command add the following:
- --flex-volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume
Under spec.containers.volumeMounts add the following:
- mountPath: /etc/kubernetes/kubelet-plugins/volume
name: flexvolume-mount
readOnly: true
Under spec.volumes update the following:
- hostPath:
path: /etc/ssl/certs
type: DirectoryOrCreate
name: ca-certs
with this yaml (this will update the ssl certs to the right path):
- hostPath:
path: /usr/share/ca-certificates
type: DirectoryOrCreate
name: ca-certs
And then add the flex volume-mount:
- hostPath:
path: /etc/kubernetes/kubelet-plugins/volume
type: DirectoryOrCreate
name: flexvolume-mount
Save the file and finally restart the sublet service with systemctl restart kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment