Skip to content

Commit

Permalink
chore: Update promtail configuration for GKE Autopilot clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jul 27, 2024
1 parent e4bf375 commit 6467c4f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application_set.tf
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,9 @@ resource "argocd_application_set" "argo-workflow" {
}
}

resource "argocd_application_set" "promtail-gke-autopilot" {
resource "argocd_application_set" "promtail" {
metadata {
name = "promtail-gke-autopilot"
name = "promtail"
}
spec {
go_template = true
Expand All @@ -680,7 +680,6 @@ resource "argocd_application_set" "promtail-gke-autopilot" {
selector {
match_labels = {
"argocd.argoproj.io/secret-type" = "cluster"
"cluster-type" = "gke-autopilot"
}
}
}
Expand All @@ -698,7 +697,7 @@ resource "argocd_application_set" "promtail-gke-autopilot" {
source {
repo_url = var.repo_url
target_revision = "HEAD"
path = "promtail/gke-autopilot"
path = "promtail/{{.name}}"
kustomize {
common_annotations = {
"github.com/url" = var.repo_url
Expand Down
1 change: 1 addition & 0 deletions loki/ops/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ singleBinary:
value: "1"

gateway:
replicas: 3
service:
type: LoadBalancer
annotations:
Expand Down
14 changes: 14 additions & 0 deletions promtail/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmCharts:
- name: promtail
releaseName: promtail
namespace: guardian
repo: https://grafana.github.io/helm-charts
version: x.x.x
valuesInline:
config:
clients:
- url: http://loki.internal.naturalselectionlabs.com/loki/api/v1/push
tenant_id: "1"
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions promtail/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmCharts:
- name: promtail
releaseName: promtail
namespace: guardian
repo: https://grafana.github.io/helm-charts
version: x.x.x
valuesInline:
config:
clients:
- url: http://loki.internal.naturalselectionlabs.com/loki/api/v1/push
tenant_id: "2"

0 comments on commit 6467c4f

Please sign in to comment.