Skip to content

Latest commit

 

History

History

k8s

Prerequisites

  • GCP account access
  • Configured (authenticated) gcloud
    • brew cask install google-cloud-sdk
    • gcloud init
      • Login and select cncf-buildpacks-ci project
    • gcloud auth application-default login
  • kubectl
    • brew install kubectl
  • terraform
    • brew install terraform

Updates

NOTE: Variables are stored in terraform.tfvars

terraform init
terraform apply

Access

gcloud container clusters get-credentials $(terraform output kubernetes_cluster_name) --region $(terraform output region)
gcloud container clusters get-credentials (terraform output kubernetes_cluster_name) --region (terraform output region)

Dashboards

kubectl proxy
  • k8s
    • Get token:
    kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')
    
  • Tekton