85 lines
1.3 KiB
Markdown
85 lines
1.3 KiB
Markdown
|
|
---
|
||
|
|
level: 2
|
||
|
|
---
|
||
|
|
|
||
|
|
# GCE
|
||
|
|
|
||
|
|
Google Compute Engine
|
||
|
|
|
||
|
|
````md magic-move {lines: true}
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# 1. PREREQS
|
||
|
|
# 2. CONFIGURE
|
||
|
|
# 3. RUN
|
||
|
|
```
|
||
|
|
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# PREREQS
|
||
|
|
# run pre flight checks ...
|
||
|
|
#
|
||
|
|
# we need to run this at least once to ensure we have tooling available ...
|
||
|
|
```
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# PREREQS
|
||
|
|
# run pre flight checks ...
|
||
|
|
cd /home/user/projects/infctl-cli # where we checked out infct-cli to
|
||
|
|
./gcloud/tf/scripts/pre-flight-checks.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# PREREQS
|
||
|
|
# running pre flight checks ...
|
||
|
|
./gcloud/tf/scripts/pre-flight-checks.sh
|
||
|
|
# .....
|
||
|
|
|
||
|
|
✅ tofu is installed,...
|
||
|
|
|
||
|
|
✅ gcloud is installed,...
|
||
|
|
|
||
|
|
✅ kubectl is installed,...
|
||
|
|
|
||
|
|
✅ envsubst is installed,...
|
||
|
|
|
||
|
|
# .....
|
||
|
|
|
||
|
|
✅ Pre-flight checks passed. You are ready to proceed 🙂
|
||
|
|
```
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# CONFIGURE
|
||
|
|
[ -f .env ] || cp -v .env.gcloud-example .env
|
||
|
|
# edit to include
|
||
|
|
export PROJECT_NAME="the name of your gcp project, often referred to as the project"
|
||
|
|
export EMAIL="your email address to identify yourself with letsencrypt"
|
||
|
|
export APP_DOMAIN_NAME="your domain name for the app, e.g., frgdr.some-domain.com"
|
||
|
|
export INSTALL_FORGEJO="true"
|
||
|
|
```
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# RUN
|
||
|
|
LOG_FORMAT=none infctl -f ./gcloud/tf/scripts/build-gcloud-k3s-pipeline-wait-dns.json
|
||
|
|
```
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
````
|
||
|
|
<div v-click>
|
||
|
|
|
||
|
|
Lets see a Google Compute Engine install [Demo](https://ascii.headshed.dev/a/qslfF9KTMj69zcSwzD6xm1uZ7)
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!--
|
||
|
|
|
||
|
|
TBC
|
||
|
|
|
||
|
|
....
|
||
|
|
|
||
|
|
-->
|