Created
May 18, 2018 23:40
-
-
Save chukaofili/e39793ab923132126c9a79a39ea2c5e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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