-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deployment scripts and README's. Remove references to personal
development project
- Loading branch information
Showing
10 changed files
with
83 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
Step 1 (Create Credentials): | ||
Create Service Account Credential JSON on GCP: | ||
- TODO: Add detailed steps on how to do this | ||
- Requires both Compute Owner and Cloud Project Owner permissions | ||
Create Kubernetes secret: | ||
-kubectl create secret generic cloud-sa --from-file=cloud-sa.json | ||
Modify "controller.yaml" to use your secret | ||
|
||
Step 2 (Set up Driver): | ||
kubectl create -f setup.yaml | ||
kubectl create -f node.yaml | ||
kubectl create -f controller.yaml | ||
|
||
Step 3 (Run demo [optional]): | ||
kubectl create -f demo-pod.yaml | ||
1. One-time per project: Create GCP service account for CSI driver | ||
1. Export environment variables for location for service account private key file and name of the service account | ||
``` | ||
$ export SA_FILE=~/.../cloud-sa.json | ||
$ export GCEPD_SA_NAME=sample-service-account | ||
``` | ||
2. Setup project with script | ||
``` | ||
$ ./deploy/setup_project.sh | ||
``` | ||
2. Deploy driver to Kubernetes cluster | ||
``` | ||
$ ./deploy/kubernetes/deploy_driver.sh | ||
``` | ||
3. Create example PVC and Pod | ||
``` | ||
$ kubectl create -f ./examples/demo-pod.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
kubectl delete -f node.yaml | ||
kubectl delete -f controller.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
source ./common.sh | ||
kubectl create secret generic cloud-sa --from-file=$SA_FILE | ||
kubectl create -f setup-cluster.yaml | ||
kubectl create -f node.yaml | ||
kubectl create -f controller.yaml |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
IAM_NAME="$GCEPD_SA_NAME@$PROJECT.iam.gserviceaccount.com" | ||
gcloud iam service-accounts create $GCEPD_SA_NAME | ||
gcloud iam service-accounts keys create $SA_FILE --iam-account $IAM_NAME | ||
gcloud projects add-iam-policy-binding $PROJECT --member serviceAccount:$IAM_NAME --role roles/compute.storageAdmin roles/compute.admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
How to run Dev tests: | ||
go run test/remote/run_remote/run_remote.go --logtostderr --v 2 --project test-project --zone us-central1-c --ssh-env gce --delete-instances=false --cleanup=false --results-dir=my_test |
This file was deleted.
Oops, something went wrong.