Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-state

gsutil 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.json

gcloud 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')
```