resource "kubernetes_pod" "node_exporter_7fth_7" {
  metadata {
    name          = "node-exporter-7fth7"
    generate_name = "node-exporter-"
    namespace     = "prometheus"
    labels = {
      controller-revision-hash = "2418008739"
      name                     = "node-exporter"
      pod-template-generation  = "1"
    }
    annotations = {
      "prometheus.io/port"   = "9100"
      "prometheus.io/scheme" = "http"
      "prometheus.io/scrape" = "true"
    }
  }
  spec {
    volume {
      name = "default-token-rkd4g"
      secret {
        secret_name  = "default-token-rkd4g"
        default_mode = "0644"
      }
    }
    container {
      name  = "prom-node-exporter"
      image = "prom/node-exporter"
      port {
        name           = "metrics"
        container_port = 9100
        protocol       = "TCP"
      }
      volume_mount {
        name       = "default-token-rkd4g"
        read_only  = true
        mount_path = "/var/run/secrets/kubernetes.io/serviceaccount"
      }
      termination_message_path   = "/dev/termination-log"
      termination_message_policy = "File"
      image_pull_policy          = "Always"
      security_context {
        privileged  = true
        run_as_user = 0
      }
    }
    restart_policy                   = "Always"
    termination_grace_period_seconds = 30
    dns_policy                       = "ClusterFirst"
    service_account_name             = "default"
    automount_service_account_token  = true
    node_name                        = "gke-cloudlogs-dev-default-pool-4a2a9dae-9b01"
    host_pid                         = true
    scheduler_name                   = "default-scheduler"
    toleration {
      key      = "node.kubernetes.io/not-ready"
      operator = "Exists"
      effect   = "NoExecute"
    }
    toleration {
      key      = "node.kubernetes.io/unreachable"
      operator = "Exists"
      effect   = "NoExecute"
    }
    toleration {
      key      = "node.kubernetes.io/disk-pressure"
      operator = "Exists"
      effect   = "NoSchedule"
    }
    toleration {
      key      = "node.kubernetes.io/memory-pressure"
      operator = "Exists"
      effect   = "NoSchedule"
    }
  }
}
