Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
added gitpod config
Browse files Browse the repository at this point in the history
  • Loading branch information
svenefftinge committed Nov 1, 2021
1 parent c5d174c commit 7a411da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,31 @@ DOMAIN=mygitpod.example.com
# Set the name of the GCP Project. If the project does not exists, it will create a new one.
# https://cloud.google.com/resource-manager/docs/creating-managing-projects
PROJECT_NAME=gitpod

# Set details about the billing account
# https://cloud.google.com/billing/docs/concepts
BILLING_ACCOUNT=XXXXX-XXXXX-XXXXX

# Set the region of the cluster's control plane and nodes
# https://cloud.google.com/kubernetes-engine/docs/concepts/regional-clusters
REGION=us-central1

# Set the zones in the region.
# By default (empty value) it will distribute the nodes in the region (at least three zones)
# https://cloud.google.com/compute/docs/regions-zones#available
ZONES=

# The name of the GKE cluster
CLUSTER_NAME=gitpod

# Set if we wan to use Preemptible nodes
# Preemptible VMs are Compute Engine VM instances that last a maximum of 24 hours in general.
# https://cloud.google.com/kubernetes-engine/docs/how-to/preemptible-vms
PREEMPTIBLE=false
PREEMPTIBLE=--preemptible

# The email address for cert-manager wildcard SSL certificate
LETSENCRYPT_EMAIL=my@email

# Set if we want to use Cloud DNS to manage the DNS service.
# https://cloud.google.com/dns
SETUP_MANAGED_DNS=true
Expand Down
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
image: ghcr.io/gitpod-io/gitpod-gke-guide:latest
tasks:
- init: |
cp .env.example .env
command: |
mkdir -p ~/.kube
mkdir -p ~/.config/gcloud
open .env
gcloud auth login
make install
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build: ## Build docker image containing the required tools for the installation
DOCKER_RUN_CMD = docker run -it \
--pull always \
--volume $$HOME/.config/gcloud:/root/.config/gcloud \
--volume $$HOME/.kube/config:/root/.kube/config \
--volume $$HOME/.kube:/root/.kube \
--volume $$PWD:/gitpod \
${IMG} $(1)

Expand Down

0 comments on commit 7a411da

Please sign in to comment.