Increase disk size for kubernetes master.

Signed-off-by: Filip Grzadkowski <filipg@google.com>
This commit is contained in:
Filip Grzadkowski 2015-05-11 14:30:57 +02:00
parent 16a76f1bd3
commit 26d14300e9
4 changed files with 13 additions and 8 deletions

View File

@ -21,6 +21,8 @@ ZONE=${KUBE_GCE_ZONE:-us-central1-b}
MASTER_SIZE=${MASTER_SIZE:-n1-standard-1}
MINION_SIZE=${MINION_SIZE:-n1-standard-1}
NUM_MINIONS=${NUM_MINIONS:-4}
MASTER_DISK_TYPE=pd-standard
MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-100GB}
MINION_DISK_TYPE=pd-standard
MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB}

View File

@ -21,6 +21,8 @@ ZONE=${KUBE_GCE_ZONE:-us-central1-b}
MASTER_SIZE=${MASTER_SIZE:-g1-small}
MINION_SIZE=${MINION_SIZE:-g1-small}
NUM_MINIONS=${NUM_MINIONS:-2}
MASTER_DISK_TYPE=pd-standard
MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-100GB}
MINION_DISK_TYPE=pd-standard
MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB}

View File

@ -531,7 +531,8 @@ function kube-up {
gcloud compute disks create "${MASTER_NAME}-pd" \
--project "${PROJECT}" \
--zone "${ZONE}" \
--size "10GB"
--type "${MASTER_DISK_TYPE}" \
--size "${MASTER_DISK_SIZE}"
# Generate a bearer token for this cluster. We push this separately
# from the other cluster variables so that the client (this

View File

@ -75,6 +75,13 @@ var _ = Describe("Density", func() {
if err := c.Namespaces().Delete(ns); err != nil {
Failf("Couldn't delete ns %s", err)
}
// Verify latency metrics
// TODO: Update threshold to 1s once we reach this goal
// TODO: We should reset metrics before the test. Currently previous tests influence latency metrics.
highLatencyRequests, err := HighLatencyRequests(c, 10*time.Second, util.NewStringSet("events"))
expectNoError(err)
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
})
// Tests with "Skipped" substring in their name will be skipped when running
@ -154,13 +161,6 @@ var _ = Describe("Density", func() {
// Tune the threshold for allowed failures.
badEvents := BadEvents(events)
Expect(badEvents).NotTo(BeNumerically(">", int(math.Floor(0.01*float64(totalPods)))))
// Verify latency metrics
// TODO: Update threshold to 1s once we reach this goal
// TODO: We should reset metrics before the test. Currently previous tests influence latency metrics.
highLatencyRequests, err := HighLatencyRequests(c, 10*time.Second, util.NewStringSet("events"))
expectNoError(err)
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
})
}
})