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
c4dd5831
Commit
c4dd5831
authored
Feb 07, 2019
by
Darren Shepherd
Committed by
Erik Wilson
Aug 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set all sources so node+agent in the same process doesn't get restricted
parent
b867d291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
server.go
cmd/kube-apiserver/app/server.go
+6
-3
No files found.
cmd/kube-apiserver/app/server.go
View file @
c4dd5831
...
...
@@ -30,6 +30,8 @@ import (
"strings"
"time"
"k8s.io/kubernetes/pkg/kubelet/types"
"github.com/spf13/cobra"
utilerrors
"k8s.io/apimachinery/pkg/util/errors"
...
...
@@ -260,13 +262,14 @@ func CreateKubeAPIServerConfig(
return
}
all
,
_
:=
types
.
GetValidatedSources
([]
string
{
types
.
AllSource
})
capabilities
.
Initialize
(
capabilities
.
Capabilities
{
AllowPrivileged
:
s
.
AllowPrivileged
,
// TODO(vmarmol): Implement support for HostNetworkSources.
PrivilegedSources
:
capabilities
.
PrivilegedSources
{
HostNetworkSources
:
[]
string
{}
,
HostPIDSources
:
[]
string
{}
,
HostIPCSources
:
[]
string
{}
,
HostNetworkSources
:
all
,
HostPIDSources
:
all
,
HostIPCSources
:
all
,
},
PerConnectionBandwidthLimitBytesPerSec
:
s
.
MaxConnectionBytesPerSec
,
})
...
...
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