Skip to content

agynio/bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • terraform
  • kubectl (optional; only needed for kubeconfig merge and cluster interaction)

Setup

Fast

chmod +x apply.sh
./apply.sh

Use auto-apply mode to skip prompts and run Terraform with -input=false -auto-approve:

./apply.sh -y

Manual

terraform -chdir=stacks/k8s init
terraform -chdir=stacks/k8s apply

terraform -chdir=stacks/system init
terraform -chdir=stacks/system apply

terraform -chdir=stacks/routing init
terraform -chdir=stacks/routing apply

terraform -chdir=stacks/data init
terraform -chdir=stacks/data apply

terraform -chdir=stacks/platform init
terraform -chdir=stacks/platform apply

Update kubeconfig after the k8s stack creates the cluster:

merged="$(KUBECONFIG=\"$KUBECONFIG:$HOME/.kube/config:$(pwd)/stacks/k8s/.kube/agyn-local-kubeconfig.yaml\" \
  kubectl config view --merge --flatten)"
printf '%s\n' "$merged" > "$HOME/.kube/config"

Usage

Default domain and port: agyn.dev on 2496.

About

Terraform stacks for local k8s cluster bootstrap (k3d) and system/app layers; local state per stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors