mirror of https://github.com/k3s-io/k3s
Merge pull request #4984 from derekwaynecarr/fix_vagrant_instance_prefix
Further vagrant reliability improvements.pull/6/head
commit
a9afb3bb9a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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 %}
|
||||
|
|
|
@ -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[@]})
|
||||
|
||||
|
|
Loading…
Reference in New Issue