Skip to content

Commit

Permalink
Merge pull request kubernetes#6382 from derekwaynecarr/fix_vagrant_ku…
Browse files Browse the repository at this point in the history
…belet

Fix vagrant with etcd in pod
  • Loading branch information
derekwaynecarr committed Apr 2, 2015
2 parents 67c1678 + c6bf46a commit 4ae016e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/saltbase/salt/kubelet/kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=docker.service
[Service]
EnvironmentFile=/etc/sysconfig/kubelet
ExecStart=/usr/local/bin/kubelet "$DAEMON_ARGS"
Restart=on-failure
Restart=always

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions cluster/saltbase/salt/sdn/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sdn:
- source: /kubernetes-vagrant/network_closure.sh
- require:
- pkg: docker-io
- sls: kubelet
- cwd: /
- user: root
- group: root
Expand Down
1 change: 1 addition & 0 deletions cluster/saltbase/salt/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ base:
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'vagrant' %}
- docker
- kubelet
- sdn
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'aws' %}
Expand Down
1 change: 1 addition & 0 deletions cluster/vagrant/provision-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ ifconfig | grep -q kbr0 || {
echo "OPTIONS='-b=kbr0 --selinux-enabled ${DOCKER_OPTS}'" >/etc/sysconfig/docker
systemctl daemon-reload
systemctl start docker
systemctl restart kubelet
}
EOF
Expand Down
3 changes: 1 addition & 2 deletions cluster/vagrant/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function verify-cluster {
# verify master has all required daemons
echo "Validating master"
local machine="master"
local -a required_daemon=("salt-master" "salt-minion" "kube-apiserver" "nginx" "kube-controller-manager" "kube-scheduler")
local -a required_daemon=("salt-master" "salt-minion" "kube-apiserver" "nginx" "kube-controller-manager" "kube-scheduler" "kubelet")
local validated="1"
until [[ "$validated" == "0" ]]; do
validated="0"
Expand Down Expand Up @@ -191,7 +191,6 @@ function verify-cluster {
)
}


# Instantiate a kubernetes cluster
function kube-up {
get-password
Expand Down

0 comments on commit 4ae016e

Please sign in to comment.