Skip to content

Terraform infrastructure script to create Kube state metric + New Relic infrastracture Kubernetes agent and link the two

License

Notifications You must be signed in to change notification settings

vistaprint/terraform-newrelic-kubernetes-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Terraform infrastructure script to create kube-state-metric + New Relic infrastracture Kubernetes agent and link them in Google Kubernetes Engine (GKE)

Usage

  1. Using gcloud console, set the correct cluster kubectl config see https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials (this will be used by terraform to deploy the infrastructure)
  2. Generate google service account credentials (need to have a Kubernetes Developer role (roles/container.developer)
  3. Run terraform init
  4. Run terraform apply. This will deploy the resources outlined in the terraform file

Variables

variable "nria_license_key" {
  type = string
  description = "New relic license key. Can get this from New Relic account page."
}

variable "cluster_name" {
  type = string
  description = "Cluster name that the agent will use to group all metrics in new relic infrastructure"
}

variable "credentials_file" {
  type = string
  description = "GKE service account credential file, in JSON format."
}

variable "project" {
  type = string
  description = "GKE Project ID"
}

variable "region" {
  type = string
  description = "Desired google cloud region"
}

variable "zone" {
  type = string
  description = "Desired google cloud zone"
}

About

Terraform infrastructure script to create Kube state metric + New Relic infrastracture Kubernetes agent and link the two

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages