Skip to content

Commit

Permalink
Start etcd-empty-dir-cleanup pod automatically on master
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohlool committed Aug 11, 2016
1 parent ea69570 commit a5b2fff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ function prepare-etcd-manifest {
mv "${temp_file}" /etc/kubernetes/manifests
}

function start-etcd-empty-dir-cleanup-pod {
cp "${KUBE_HOME}/kube-manifests/kubernetes/gci-trusty/etcd-empty-dir-cleanup/etcd-empty-dir-cleanup.yaml" "/etc/kubernetes/manifests"
}

# Starts etcd server pod (and etcd-events pod if needed).
# More specifically, it prepares dirs and files, sets the variable value
# in the manifests, and copies them to /etc/kubernetes/manifests.
Expand Down Expand Up @@ -1038,6 +1042,7 @@ start-kubelet
if [[ "${KUBERNETES_MASTER:-}" == "true" ]]; then
compute-master-manifest-variables
start-etcd-servers
start-etcd-empty-dir-cleanup-pod
start-kube-apiserver
start-kube-controller-manager
start-kube-scheduler
Expand Down

0 comments on commit a5b2fff

Please sign in to comment.