Skip to content

JuanVF/gcp-vm-k8s-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Kubernetes Cluster Setup on Google Cloud Platform

This is just for learning purposes. The Cluster as result is not stable enough! Don't use it in production without making stability improvements first.

Description

This project aims to automate the setup of a Kubernetes cluster on Google Cloud Platform (GCP) using Terraform and shell scripts. It includes the provisioning of infrastructure, setting up master and worker nodes, and installing necessary software and configurations.

Prerequisites

  • Terraform
  • Google Cloud SDK
  • GCP account with appropriate permissions
  • A GCP Service Account Private Key with Compute Storage Access
  • A bucket in GCP Storage for sharing the join command between nodes

Setup Instructions

  1. Clone the repository

git clone git@github.com:JuanVF/gcp-vm-k8s-cluster.git cd gcp-vm-k8s-cluster

  1. Configure Terraform variables

You need to setup the variables to interact with GCP. Create a terraform.tfvars and add these variables

project_id  = "<project-id>"
region      = "us-central1"
zone        = "us-central1-a"
private_key = "<svc account private key>"
  1. Initialize Terraform

terraform init

  1. Apply Terraform configurations

terraform apply

  1. At this point you should just wait for the Cluster to be available!

About

Setup a Kubernetes Cluster using GCP CE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published