Skip to content

Commit

Permalink
Bind /dev/disk to node and master
Browse files Browse the repository at this point in the history
When kubernetes openstack cloud provider get vm metadata by
configdriver, it get vm info from '/dev/disk/*', so we should bind
'/dev/disk' for kube-apiserver\kube-controller-manager and kubelet.

Fix projectatomic#171
cc @strigazi
  • Loading branch information
FengyunPan2 committed Apr 11, 2018
1 parent d8838d8 commit 810f309
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kubernetes-apiserver/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@
"rprivate"
]
},
{
"type": "bind",
"source": "/dev/disk",
"destination": "/dev/disk",
"options": [
"rbind",
"ro",
"rprivate"
]
},
{
"destination": "/etc/resolv.conf",
"type": "bind",
Expand Down
10 changes: 10 additions & 0 deletions kubernetes-controller-manager/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@
"rprivate"
]
},
{
"type": "bind",
"source": "/dev/disk",
"destination": "/dev/disk",
"options": [
"rbind",
"ro",
"rprivate"
]
},
{
"destination": "/etc/resolv.conf",
"type": "bind",
Expand Down
10 changes: 10 additions & 0 deletions kubernetes-kubelet/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,16 @@
"rprivate"
]
},
{
"type": "bind",
"source": "/dev/disk",
"destination": "/dev/disk",
"options": [
"rbind",
"ro",
"rprivate"
]
},
{
"type": "bind",
"source": "/etc/localtime",
Expand Down

0 comments on commit 810f309

Please sign in to comment.