Merge pull request #27143 from adityakali/localssd
Automatic merge from submit-queue support for mounting local-ssds on GCI This change adds support for mounting local ssds on GCI. It updates the previous container-vm behavior as well to match that for GCI nodes by mounting the local-ssds under the same path (/mnt/disks/ssdN). @vulpecula @roberthbailey @andyzheng0831 @kubernetes/goog-image
This commit is contained in:
@@ -54,7 +54,7 @@ func createNodePoolWithLocalSsds(nodePoolName string) {
|
||||
}
|
||||
|
||||
func doTestWriteAndReadToLocalSsd(f *framework.Framework) {
|
||||
var pod = testPodWithSsd("echo 'hello world' > /mnt/ssd0/data && sleep 1 && cat /mnt/ssd0/data")
|
||||
var pod = testPodWithSsd("echo 'hello world' > /mnt/disks/ssd0/data && sleep 1 && cat /mnt/disks/ssd0/data")
|
||||
var msg string
|
||||
var out = []string{"hello world"}
|
||||
|
||||
@@ -64,7 +64,7 @@ func doTestWriteAndReadToLocalSsd(f *framework.Framework) {
|
||||
func testPodWithSsd(command string) *api.Pod {
|
||||
containerName := "test-container"
|
||||
volumeName := "test-ssd-volume"
|
||||
path := "/mnt/ssd0"
|
||||
path := "/mnt/disks/ssd0"
|
||||
podName := "pod-" + string(util.NewUUID())
|
||||
image := "ubuntu:14.04"
|
||||
return &api.Pod{
|
||||
|
||||
Reference in New Issue
Block a user