Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d6ffede0
Commit
d6ffede0
authored
Dec 15, 2014
by
Joe Beda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2946 from mbforbes/allGcloud
Use GCLOUD var consistentl over gcloud in tests.
parents
a2638da2
f9108c62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
pd.sh
hack/e2e-suite/pd.sh
+7
-7
No files found.
hack/e2e-suite/pd.sh
View file @
d6ffede0
...
...
@@ -47,14 +47,14 @@ trap "teardown" EXIT
perl
-p
-e
"s/%.*%/
${
disk_name
}
/g"
${
KUBE_ROOT
}
/examples/gce-pd/testpd.yaml
>
${
config
}
# Create and format the disk.
gcloud
compute disks create
--zone
=
"
${
ZONE
}
"
--size
=
10GB
"
${
disk_name
}
"
gcloud
compute instances attach-disk
--zone
=
"
${
ZONE
}
"
--disk
=
"
${
disk_name
}
"
\
"
${
GCLOUD
}
"
compute disks create
--zone
=
"
${
ZONE
}
"
--size
=
10GB
"
${
disk_name
}
"
"
${
GCLOUD
}
"
compute instances attach-disk
--zone
=
"
${
ZONE
}
"
--disk
=
"
${
disk_name
}
"
\
--device-name
temp-data
"
${
MASTER_NAME
}
"
gcloud
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo rm -rf /mnt/tmp"
gcloud
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo mkdir -p /mnt/tmp"
gcloud
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo /usr/share/google/safe_format_and_mount /dev/disk/by-id/google-temp-data /mnt/tmp"
gcloud
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo umount /mnt/tmp"
gcloud
compute instances detach-disk
--zone
=
"
${
ZONE
}
"
--disk
"
${
disk_name
}
"
"
${
MASTER_NAME
}
"
"
${
GCLOUD
}
"
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo rm -rf /mnt/tmp"
"
${
GCLOUD
}
"
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo mkdir -p /mnt/tmp"
"
${
GCLOUD
}
"
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo /usr/share/google/safe_format_and_mount /dev/disk/by-id/google-temp-data /mnt/tmp"
"
${
GCLOUD
}
"
compute ssh
--zone
=
"
${
ZONE
}
"
"
${
MASTER_NAME
}
"
--command
"sudo umount /mnt/tmp"
"
${
GCLOUD
}
"
compute instances detach-disk
--zone
=
"
${
ZONE
}
"
--disk
"
${
disk_name
}
"
"
${
MASTER_NAME
}
"
# Create a pod that uses the PD
${
KUBECFG
}
-c
${
config
}
create pods
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment