Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
de3cf252
Unverified
Commit
de3cf252
authored
Nov 08, 2017
by
Andrew Rynhard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionally mount flexvolume
parent
33f873db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
volumes.go
cmd/kubeadm/app/phases/controlplane/volumes.go
+3
-1
No files found.
cmd/kubeadm/app/phases/controlplane/volumes.go
View file @
de3cf252
...
...
@@ -72,7 +72,9 @@ func getHostPathVolumesForTheControlPlane(cfg *kubeadmapi.MasterConfiguration) c
mounts
.
NewHostPathMount
(
kubeadmconstants
.
KubeControllerManager
,
kubeadmconstants
.
KubeConfigVolumeName
,
controllerManagerKubeConfigFile
,
controllerManagerKubeConfigFile
,
true
,
&
hostPathFileOrCreate
)
// Mount for the flexvolume directory (/usr/libexec/kubernetes/kubelet-plugins/volume/exec) directory
// Flexvolume dir must NOT be readonly as it is used for third-party plugins to integrate with their storage backends via unix domain socket.
mounts
.
NewHostPathMount
(
kubeadmconstants
.
KubeControllerManager
,
flexvolumeDirVolumeName
,
flexvolumeDirVolumePath
,
flexvolumeDirVolumePath
,
false
,
&
hostPathDirectoryOrCreate
)
if
stat
,
err
:=
os
.
Stat
(
flexvolumeDirVolumePath
);
err
==
nil
&&
stat
.
IsDir
()
{
mounts
.
NewHostPathMount
(
kubeadmconstants
.
KubeControllerManager
,
flexvolumeDirVolumeName
,
flexvolumeDirVolumePath
,
flexvolumeDirVolumePath
,
false
,
&
hostPathDirectoryOrCreate
)
}
// HostPath volumes for the scheduler
// Read-only mount for the scheduler kubeconfig file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment