Merge pull request #4984 from derekwaynecarr/fix_vagrant_instance_prefix

Further vagrant reliability improvements.
pull/6/head
Brian Grant 2015-03-03 11:39:05 -08:00
commit a9afb3bb9a
7 changed files with 19 additions and 8 deletions

View File

@ -5,6 +5,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
EnvironmentFile=/etc/sysconfig/kube-apiserver
ExecStart=/usr/local/bin/kube-apiserver "$DAEMON_ARGS"
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -3,9 +3,9 @@ Description=Kubernetes Controller Manager
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/kube-controller-manager
ExecStart=/usr/local/bin/kube-controller-manager "$DAEMON_ARGS"
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
EnvironmentFile=/etc/sysconfig/kube-proxy
ExecStart=/usr/local/bin/kube-proxy "$DAEMON_ARGS"
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -6,6 +6,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
Type=simple
EnvironmentFile=-/etc/sysconfig/kube-scheduler
ExecStart=/usr/local/bin/kube-scheduler "$DAEMON_ARGS"
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -1,10 +1,13 @@
[Unit]
Description=Kubernetes Kubelet Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=/etc/sysconfig/kubelet
ExecStart=/usr/local/bin/kubelet "$DAEMON_ARGS"
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -1,8 +1,13 @@
{% if grains.network_mode is defined and grains.network_mode == 'openvswitch' %}
sdn:
cmd.wait:
- name: /kubernetes-vagrant/network_closure.sh
- watch:
- sls: docker
cmd.script:
- source: /kubernetes-vagrant/network_closure.sh
- require:
- pkg: docker-io
- cwd: /
- user: root
- group: root
- shell: /bin/bash
{% endif %}

View File

@ -31,8 +31,8 @@ cat <<EOF > ${POST_NETWORK_SCRIPT}
set -e
# Only do this operation once, otherwise, we get docker.service files output on disk, and the command line arguments get applied multiple times
grep -q kbr0 /etc/sysconfig/docker || {
# Only do this operation if the bridge is not defined
ifconfig | grep -q kbr0 || {
CONTAINER_SUBNETS=(${MASTER_CONTAINER_SUBNET} ${MINION_CONTAINER_SUBNETS[@]})
CONTAINER_IPS=(${MASTER_IP} ${MINION_IPS[@]})