Skip to content

Commit

Permalink
Merge pull request #109 from kbst/prepare080beta1
Browse files Browse the repository at this point in the history
Prepare080beta1
  • Loading branch information
pst authored May 18, 2020
2 parents 0a4c91a + 5768ffa commit b004875
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
run: |
SOURCE_FILE=test-artifacts/kubestack-starter-${{ matrix.starter }}-${{ github.sha }}.zip
TARGET_BUCKET=dev.quickstart.kubestack.com
if [[ GITHUB_REF = refs/tags/v* ]]
if [[ $GITHUB_REF = refs/tags/v* ]]
then
VERSION=$(echo $GITHUB_REF | sed -e "s#^refs/tags/##")
SOURCE_FILE=test-artifacts/kubestack-starter-${{ matrix.starter }}-${VERSION}.zip
Expand Down
91 changes: 49 additions & 42 deletions quickstart/src/configurations/_shared/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,48 +84,55 @@ To accelerate the developer workflow, a [development environment][6], can be run

In case of the automation being unavailable, upgrades requiring manual steps or in disaster recovery scenarios run Terraform and the cloud CLI locally. Kubestack provides container images bundling all dependencies to use for both automated and manual operations.

```shell
# Build the bootstrap container
docker build -t kubestack .
# Exec into the bootstrap container
docker run --rm -ti \
-v `pwd`:/infra \
# uncomment to mount the docker socket for local dev
# -v /var/run/docker.sock:/var/run/docker.sock \
kubestack
```

```shell
# if you haven't before, login
# for AWS
aws configure
# for Azure
az login
# for GCP
gcloud init
gcloud auth application-default login
```

```shell
# select the desired environment
# for ops
terraform workspace select ops
# or for apps
terraform workspace select apps
```
```shell
# run terraform init
terraform init
# run terraform commands as required, e.g.
terraform plan
```
1. Exec into container

```shell
# Build the bootstrap container
docker build -t kubestack .
# Exec into the bootstrap container
# add docker socket mount for local dev
# -v /var/run/docker.sock:/var/run/docker.sock
docker run --rm -ti \
-v `pwd`:/infra \
kubestack
```

1. Authenticate providers

Credentials are cached inside the `.user` directory. The directory is excluded from Git by the default `.gitignore`.

```shell
# for AWS
aws configure
# for Azure
az login
# for GCP
gcloud init
gcloud auth application-default login
```

1. Select desired environment

```shell
# for ops
terraform workspace select ops
# or for apps
terraform workspace select apps
```
1. Run Terraform commands
```shell
# run terraform init
terraform init
# run, e.g. terraform plan
terraform plan
```
[1]: https://www.kubestack.com
[2]: https://www.kubestack.com/catalog
Expand Down

0 comments on commit b004875

Please sign in to comment.