Created
July 12, 2018 19:18
-
-
Save jmcdice/4fefd01dc8c6225cc396f3007fa9d261 to your computer and use it in GitHub Desktop.
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
# Install gcloud | |
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
apt-get -y update | |
apt-get -y --allow-unauthenticated install google-cloud-sdk kubectl | |
# Install GCSFuse | |
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` | |
echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install gcsfuse | |
# Create a GCS bucket | |
gsutil mb -l us-central1 gs://bucket-secrets-x01/ | |
# Mount the bucket | |
mkdir /opt/bucket-secrets-x01 | |
gcsfuse bucket-secrets-x01 /opt/bucket-secrets-x01 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment