Skip to content

Commit

Permalink
pod limits for apiserver are too low
Browse files Browse the repository at this point in the history
  • Loading branch information
cristifalcas committed Feb 2, 2017
1 parent 18a16fa commit cad1768
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion manifests/master/apiserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@
docker::run { 'kube-apiserver':
ensure => $ensure_container,
image => $container_image,
command => "/hyperkube apiserver ${args}",
command => '/hyperkube apiserver ${args}',
volumes => ['/etc/pki:/etc/pki', '/etc/ssl:/etc/ssl', '/etc/kubernetes:/etc/kubernetes',],
restart_service => true,
net => 'host',
Expand Down
2 changes: 1 addition & 1 deletion manifests/master/controller_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
docker::run { 'kube-controller-manager':
ensure => $ensure_container,
image => $container_image,
command => "/hyperkube controller-manager ${args}",
command => '/hyperkube controller-manager ${args}',
volumes => ['/etc/pki:/etc/pki', '/etc/ssl:/etc/ssl', '/etc/kubernetes:/etc/kubernetes',],
restart_service => true,
net => 'host',
Expand Down
2 changes: 1 addition & 1 deletion manifests/master/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# api server config
$kube_api_manage_as = 'service'
$kube_api_container_image = 'gcr.io/google_containers/hyperkube-amd64:v1.4.0'
$kube_api_pod_cpu = '100m'
$kube_api_pod_cpu = '300m'
$kube_api_pod_memory = '700Mi'
$kube_api_service_ensure = running
$kube_api_journald_forward_enable = false
Expand Down
2 changes: 1 addition & 1 deletion manifests/master/scheduler.pp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
docker::run { 'kube-scheduler':
ensure => $ensure_container,
image => $container_image,
command => "/hyperkube scheduler ${args}",
command => '/hyperkube scheduler ${args}',
volumes => ['/etc/pki:/etc/pki', '/etc/ssl:/etc/ssl', '/etc/kubernetes:/etc/kubernetes',],
restart_service => true,
net => 'host',
Expand Down
2 changes: 1 addition & 1 deletion manifests/node/kube_proxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
docker::run { 'kube-proxy':
ensure => $ensure_container,
image => $container_image,
command => "/hyperkube proxy ${args}",
command => '/hyperkube proxy ${args}',
volumes => ['/etc/pki:/etc/pki', '/etc/ssl:/etc/ssl', '/etc/kubernetes:/etc/kubernetes',],
restart_service => true,
net => 'host',
Expand Down
7 changes: 0 additions & 7 deletions templates/pods/pod_kube-apiserver.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ spec:
port: <%= @insecure_port %>
initialDelaySeconds: 30
timeoutSeconds: 3
ports:
- containerPort: <%= @secure_port %>
hostPort: <%= @secure_port %>
name: https
- containerPort: <%= @insecure_port %>
hostPort: <%= @insecure_port %>
name: local
volumeMounts:
- mountPath: /etc/pki
name: etcpki
Expand Down

0 comments on commit cad1768

Please sign in to comment.