All Projects → SantoDE → Terraform Gcp Kubernetes Traefik

SantoDE / Terraform Gcp Kubernetes Traefik

Licence: mit
Little example of how to deploy a gke cluster with terraform and use traefik as ingress controller

Projects that are alternatives of or similar to Terraform Gcp Kubernetes Traefik

Terraform Google Vault
Terraform module to deploy Vault as a container on Google Cloud Run
Stars: ✭ 25 (-35.9%)
Mutual labels:  google-cloud-platform, terraform, hcl
Lambda Deployment Example
Automated Lambda Deployments with Terraform & CodePipeline
Stars: ✭ 25 (-35.9%)
Mutual labels:  terraform, hcl
Terraform Reference
Terraform reference / skel Control Repo for building for building multi-tier services
Stars: ✭ 33 (-15.38%)
Mutual labels:  terraform, hcl
K8s Digitalocean Terraform
Deploy latest Kubernetes cluster on DigitalOcean using Terraform
Stars: ✭ 33 (-15.38%)
Mutual labels:  terraform, hcl
Ebs bckup
Stars: ✭ 32 (-17.95%)
Mutual labels:  terraform, hcl
Terraform Modules
Terraform Modules
Stars: ✭ 25 (-35.9%)
Mutual labels:  terraform, hcl
Terraform Sqs Lambda Trigger Example
Example on how to create a AWS Lambda triggered by SQS in Terraform
Stars: ✭ 31 (-20.51%)
Mutual labels:  terraform, hcl
Terraform Openstack Rke
Terraform Openstack RKE
Stars: ✭ 23 (-41.03%)
Mutual labels:  terraform, hcl
Terra Aws Core Kube
Terraform configuration to bootstrap a Kubernetes Cluster on top of CoreOS using AWS-EC2 instances
Stars: ✭ 10 (-74.36%)
Mutual labels:  terraform, hcl
Terraform Aws Iam Role
Terraform module to create AWS IAM Role.
Stars: ✭ 28 (-28.21%)
Mutual labels:  terraform, hcl
Hcloud Okd4
Deploy OKD4 (OpenShift) on Hetzner Cloud
Stars: ✭ 29 (-25.64%)
Mutual labels:  terraform, hcl
Terraform Best Practices
Terraform Best Practices for AWS users
Stars: ✭ 931 (+2287.18%)
Mutual labels:  terraform, hcl
Karch
A Terraform module to create and maintain Kubernetes clusters on AWS easily, relying entirely on kops
Stars: ✭ 38 (-2.56%)
Mutual labels:  terraform, hcl
Vector Test Harness
End-to-end test harness for the Vector observability data router
Stars: ✭ 32 (-17.95%)
Mutual labels:  terraform, hcl
Fdb Cloud Test
Packer + Terraform setup to experiment with FDB clusters in the cloud.
Stars: ✭ 23 (-41.03%)
Mutual labels:  terraform, hcl
Cloudguardiaas
Check Point CloudGuard Network Security repository containing solution templates, Terraform templates, tools and scripts for deploying and configuring CloudGuard Network Security products.
Stars: ✭ 27 (-30.77%)
Mutual labels:  terraform, hcl
Vscode Terraform
A Visual Studio Code extension for Hashicorp Terraform
Stars: ✭ 672 (+1623.08%)
Mutual labels:  terraform, hcl
Terraform Aws Vpc Peering
A Terraform module to configure a VPC Peering connection in AWS.
Stars: ✭ 17 (-56.41%)
Mutual labels:  terraform, hcl
Terraform Best Practices
Terraform best practices (constantly updating)
Stars: ✭ 940 (+2310.26%)
Mutual labels:  terraform, hcl
Terraform Aws Cross Account Role
A Terraform module to create an IAM Role for Cross Account delegation.
Stars: ✭ 30 (-23.08%)
Mutual labels:  terraform, hcl

Traefik on Google Cloud Kubernetes Engine

Requirements

  • Google Cloud Account
  • gcloud SDK installed
  • GCP Project with Billing and Compute Engine Enabled

Steps

Setup CLI

gcloud init
gcloud auth application-default login
export GOOGLE_PROJECT=$(gcloud config get-value project)

Edit Files

As of RBAC Constraints on GKE, it's necessary to edit one file.

permissions.yml

On line 12

subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: User
  name: <yourgcpaccountemail.com>

please enter your valid GCP account email.

Create Cluster

terraform init
terraform apply

Setup Kubectl

gcloud container clusters get-credentials $(terraform output cluster_name) --zone $(terraform output cluster_zone)

Spawn Traefik as Ingress Controller

kubectl apply -f services/traefik

Spawn Demo Services

kubectl apply -f services/whoami
kubectl apply -f services/nginx
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].