Skip to content

Commit

Permalink
Set up Google Application Credentials.
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Kohen <jkohen@google.com>
  • Loading branch information
jkohen committed Aug 13, 2018
1 parent ffbfdfb commit b75cbaf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kube/prometheus-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ spec:
mountPath: /etc/prometheus/config
- name: data-volume
mountPath: /data
- name: google-cloud-key
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/prometheus-to-sd-ae006f387855.json
- name: sidecar
image: gcr.io/prometheus-to-sd/stackdriver-prometheus-sidecar:${SIDECAR_IMAGE_TAG}
imagePullPolicy: Always
Expand All @@ -58,6 +63,9 @@ spec:
name: prometheus-meta
- name: data-volume
emptyDir: {}
- name: google-cloud-key
secret:
secretName: gce-key
terminationGracePeriodSeconds: 300
---
apiVersion: v1
Expand Down

0 comments on commit b75cbaf

Please sign in to comment.