Skip to content

Instantly share code, notes, and snippets.

@chukaofili
Created May 18, 2018 23:40
Show Gist options
  • Save chukaofili/e39793ab923132126c9a79a39ea2c5e2 to your computer and use it in GitHub Desktop.
Save chukaofili/e39793ab923132126c9a79a39ea2c5e2 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