Unverified Commit 6355ea54 authored by John Skarbek's avatar John Skarbek
Browse files

Add delay-start container logs to stackdriver

* This takes logs that come from the delay-start container of the
  NGINX Ingress initContainer and ensures they make it to stackdriver
parent 0157cb36
......@@ -2332,3 +2332,12 @@ resource "google_logging_project_sink" "gke-gitlab-nginx-stderr" {
unique_writer_identity = "true"
# Send all stdout logs from our NGINX Ingresses initContainer `delay-start` to StackDriver
resource "google_logging_project_sink" "gke-gitlab-nginx-delay-start" {
name = "gke-gitlab-nginx-delay-start"
destination = "logging.googleapis.com/projects/${var.project}/locations/global/buckets/_Default"
filter = "resource.type = \"k8s_container\" labels.\"k8s-pod/app\" = \"nginx-ingress\" resource.labels.container_name = \"delay-start\""
unique_writer_identity = "true"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment