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
832d83ef
Unverified
Commit
832d83ef
authored
Sep 21, 2016
by
Devan Goodwin
Committed by
Ilya Dmitrichenko
Sep 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow etcd container to work with selinux.
parent
0f05ccb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
manifests.go
cmd/kubeadm/app/master/manifests.go
+9
-0
No files found.
cmd/kubeadm/app/master/manifests.go
View file @
832d83ef
...
@@ -96,6 +96,15 @@ func WriteStaticPodManifests(s *kubeadmapi.KubeadmConfig) error {
...
@@ -96,6 +96,15 @@ func WriteStaticPodManifests(s *kubeadmapi.KubeadmConfig) error {
Image
:
images
.
GetCoreImage
(
images
.
KubeEtcdImage
,
s
.
EnvParams
[
"etcd_image"
]),
Image
:
images
.
GetCoreImage
(
images
.
KubeEtcdImage
,
s
.
EnvParams
[
"etcd_image"
]),
LivenessProbe
:
componentProbe
(
2379
,
"/health"
),
LivenessProbe
:
componentProbe
(
2379
,
"/health"
),
Resources
:
componentResources
(
"200m"
),
Resources
:
componentResources
(
"200m"
),
SecurityContext
:
&
api
.
SecurityContext
{
SELinuxOptions
:
&
api
.
SELinuxOptions
{
// TODO: This implies our etcd container is not being restricted by
// SELinux. This is not optimal and would be nice to adjust in future
// so it can create and write /var/lib/etcd, but for now this avoids
// recommending setenforce 0 system-wide.
Type
:
"unconfined_t"
,
},
},
},
certsVolume
(
s
),
etcdVolume
(
s
),
k8sVolume
(
s
))
},
certsVolume
(
s
),
etcdVolume
(
s
),
k8sVolume
(
s
))
}
}
...
...
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