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
eba50dfe
Commit
eba50dfe
authored
May 31, 2017
by
CJ Cullen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace todo-grabbag binding w/ more specific heapster roles/bindings.
Move kubelet binding to the rbac folder.
parent
cc568f64
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
114 additions
and
34 deletions
+114
-34
heapster-controller.yaml
...addons/cluster-monitoring/google/heapster-controller.yaml
+10
-0
heapster-controller-combined.yaml
...nitoring/googleinfluxdb/heapster-controller-combined.yaml
+10
-0
heapster-rbac.yaml
cluster/addons/cluster-monitoring/heapster-rbac.yaml
+58
-0
heapster-controller.yaml
...dons/cluster-monitoring/influxdb/heapster-controller.yaml
+10
-0
heapster-controller.yaml
...s/cluster-monitoring/stackdriver/heapster-controller.yaml
+10
-0
heapster-controller.yaml
...ns/cluster-monitoring/standalone/heapster-controller.yaml
+10
-0
README.md
cluster/addons/e2e-rbac-bindings/README.md
+0
-5
random-addon-grabbag.yaml
cluster/addons/e2e-rbac-bindings/random-addon-grabbag.yaml
+0
-20
kubelet-binding.yaml
cluster/addons/rbac/kubelet-binding.yaml
+2
-3
configure-helper.sh
cluster/gce/container-linux/configure-helper.sh
+3
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+1
-4
No files found.
cluster/addons/cluster-monitoring/google/heapster-controller.yaml
View file @
eba50dfe
...
...
@@ -11,6 +11,15 @@
{
%
set nanny_memory = (90 * 1024 + num_nodes * nanny_memory_per_node)|string + "Ki" -%
}
{
%
endif -%
}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
heapster
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -134,6 +143,7 @@ spec:
-
name
:
usr-ca-certs
hostPath
:
path
:
"
/usr/share/ca-certificates"
serviceAccountName
:
heapster
tolerations
:
-
key
:
"
CriticalAddonsOnly"
operator
:
"
Exists"
cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml
View file @
eba50dfe
...
...
@@ -11,6 +11,15 @@
{
%
set nanny_memory = (90 * 1024 + num_nodes * nanny_memory_per_node)|string + "Ki" -%
}
{
%
endif -%
}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
heapster
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -135,6 +144,7 @@ spec:
-
name
:
usr-ca-certs
hostPath
:
path
:
"
/usr/share/ca-certificates"
serviceAccountName
:
heapster
tolerations
:
-
key
:
"
CriticalAddonsOnly"
operator
:
"
Exists"
cluster/addons/cluster-monitoring/heapster-rbac.yaml
0 → 100644
View file @
eba50dfe
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
ClusterRoleBinding
metadata
:
name
:
heapster-binding
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
system:heapster
subjects
:
-
kind
:
ServiceAccount
name
:
heapster
namespace
:
kube-system
---
# Heapster's pod_nanny monitors the heapster deployment & its pod(s), and scales
# the resources of the deployment if necessary.
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
Role
metadata
:
name
:
system:pod-nanny
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
rules
:
-
apiGroups
:
-
"
"
resources
:
-
pods
verbs
:
-
get
-
apiGroups
:
-
"
extensions"
resources
:
-
deployments
verbs
:
-
get
-
update
---
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
RoleBinding
metadata
:
name
:
heapster-binding
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
system:pod-nanny
subjects
:
-
kind
:
ServiceAccount
name
:
heapster
namespace
:
kube-system
---
cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
View file @
eba50dfe
...
...
@@ -11,6 +11,15 @@
{
%
set nanny_memory = (90 * 1024 + num_nodes * nanny_memory_per_node)|string + "Ki" -%
}
{
%
endif -%
}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
heapster
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -113,6 +122,7 @@ spec:
-
--container=eventer
-
--poll-period=300000
-
--estimator=exponential
serviceAccountName
:
heapster
tolerations
:
-
key
:
"
CriticalAddonsOnly"
operator
:
"
Exists"
cluster/addons/cluster-monitoring/stackdriver/heapster-controller.yaml
View file @
eba50dfe
...
...
@@ -9,6 +9,15 @@
{
%
set nanny_memory = (90 * 1024 + num_nodes * nanny_memory_per_node)|string + "Ki" -%
}
{
%
endif -%
}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
heapster
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -91,6 +100,7 @@ spec:
-
name
:
usr-ca-certs
hostPath
:
path
:
"
/usr/share/ca-certificates"
serviceAccountName
:
heapster
tolerations
:
-
key
:
"
CriticalAddonsOnly"
operator
:
"
Exists"
cluster/addons/cluster-monitoring/standalone/heapster-controller.yaml
View file @
eba50dfe
...
...
@@ -9,6 +9,15 @@
{
%
set nanny_memory = (90 * 1024 + num_nodes * nanny_memory_per_node)|string + "Ki" -%
}
{
%
endif -%
}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
heapster
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -75,6 +84,7 @@ spec:
-
--container=heapster
-
--poll-period=300000
-
--estimator=exponential
serviceAccountName
:
heapster
tolerations
:
-
key
:
"
CriticalAddonsOnly"
operator
:
"
Exists"
cluster/addons/e2e-rbac-bindings/README.md
deleted
100644 → 0
View file @
cc568f64
These resources are used to add extra (non-default) bindings to e2e to match users and groups
that are particular to the e2e environment. These are not standard bootstrap bindings and
not standard users they are bound to. This is not a recipe for adding bootstrap bindings.
[

]()
cluster/addons/e2e-rbac-bindings/random-addon-grabbag.yaml
deleted
100644 → 0
View file @
cc568f64
# TODO remove this
# currently, the kube-addon-manager is adding lots of pods which all share
# the system:serviceaccount:kube-system:default identity. We need to subdivide
# those service accounts, figure out which ones we're going to make bootstrap roles for
# and bind those particular roles in the addon yaml itself. This just gets us started
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
ClusterRoleBinding
metadata
:
name
:
todo-remove-grabbag-cluster-admin
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
cluster-admin
subjects
:
-
kind
:
ServiceAccount
name
:
default
namespace
:
kube-system
cluster/addons/
e2e-rbac-bindings
/kubelet-binding.yaml
→
cluster/addons/
rbac
/kubelet-binding.yaml
View file @
eba50dfe
# The GKE environments don't have kubelets with certificates that
# identify the system:nodes group. They use the kubelet identity
# TODO cjcullen should figure out how wants to manage his upgrade
# this will only hold the e2e tests until we get an authorizer
# which authorizes particular nodes
# TODO: remove this once new nodes are granted individual identities and the
# NodeAuthorizer is enabled.
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
ClusterRoleBinding
metadata
:
...
...
cluster/gce/container-linux/configure-helper.sh
View file @
eba50dfe
...
...
@@ -1126,8 +1126,8 @@ function start-kube-addons {
local
-r
src_dir
=
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty"
local
-r
dst_dir
=
"/etc/kubernetes/addons"
# prep
the additional bindings that are particular to e2e users and group
s
setup-addon-manifests
"addons"
"
e2e-rbac-bindings
"
# prep
addition kube-up specific rbac object
s
setup-addon-manifests
"addons"
"
rbac
"
# Set up manifests of other addons.
if
[[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
==
"influxdb"
]]
||
\
...
...
@@ -1136,6 +1136,7 @@ function start-kube-addons {
[[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
==
"standalone"
]]
||
\
[[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
==
"googleinfluxdb"
]]
;
then
local
-r
file_dir
=
"cluster-monitoring/
${
ENABLE_CLUSTER_MONITORING
}
"
setup-addon-manifests
"addons"
"cluster-monitoring"
setup-addon-manifests
"addons"
"
${
file_dir
}
"
# Replace the salt configurations with variable values.
base_metrics_memory
=
"140Mi"
...
...
cluster/gce/gci/configure-helper.sh
View file @
eba50dfe
...
...
@@ -1481,10 +1481,6 @@ function start-kube-addons {
local
-r
src_dir
=
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty"
local
-r
dst_dir
=
"/etc/kubernetes/addons"
# TODO(mikedanese): only enable these in e2e
# prep the additional bindings that are particular to e2e users and groups
setup-addon-manifests
"addons"
"e2e-rbac-bindings"
# prep addition kube-up specific rbac objects
setup-addon-manifests
"addons"
"rbac"
...
...
@@ -1495,6 +1491,7 @@ function start-kube-addons {
[[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
==
"standalone"
]]
||
\
[[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
==
"googleinfluxdb"
]]
;
then
local
-r
file_dir
=
"cluster-monitoring/
${
ENABLE_CLUSTER_MONITORING
}
"
setup-addon-manifests
"addons"
"cluster-monitoring"
setup-addon-manifests
"addons"
"
${
file_dir
}
"
# Replace the salt configurations with variable values.
base_metrics_memory
=
"140Mi"
...
...
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