Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evry-ace/kubernetes-on-air
Kubernetes On Air
https://github.com/evry-ace/kubernetes-on-air
Last synced: about 2 months ago
JSON representation
Kubernetes On Air
- Host: GitHub
- URL: https://github.com/evry-ace/kubernetes-on-air
- Owner: evry-ace
- License: mit
- Created: 2020-03-31T17:38:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:59:29.000Z (about 1 year ago)
- Last Synced: 2023-12-15T12:55:59.662Z (about 1 year ago)
- Language: HCL
- Size: 157 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubernetes-on-air
Kubernetes On Air## Setup
```
export PROJECT=my-project
export LOCATION=europe-north1
gcloud config set project $PROJECT
```Create Google Cloud Storage Bucket for Terraform State
```
export TERRAFORM_STATE_GCP_BUCKET $PROJECT-tf-stategsutil mb -b on -c standard -l $LOCATION gs://$TERRAFORM_STATE_GCP_BUCKET
```Create Terraform Service Account
```
gcloud iam service-accounts create terraform
gcloud iam service-accounts keys create \
--iam-account terraform@$PROJECT.iam.gserviceaccount.com \
$PROJECT.jsongcloud projects add-iam-policy-binding $PROJECT \
--member serviceAccount:terraform@$PROJECT.iam.gserviceaccount.com \
--role roles/editor
```Create Terraform Encryption Key
```
export GOOGLE_ENCRYPTION_KEY=$(openssl rand -base64 32)
export GOOGLE_APPLICATION_CREDENTIALS=$PROJECT.json
export GOOGLE_CREDENTIALS=$(cat $GOOGLE_APPLICATION_CREDENTIALS | tr -d '\n')
```