Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
Define storage type as an env var (#62)
Browse files Browse the repository at this point in the history
* Define storage type as an env var

Signed-off-by: Gary Brown <[email protected]>

* Update to take into account jaeger #643 which changed the env var name, which is backward compatible with 1.1

Signed-off-by: Gary Brown <[email protected]>
  • Loading branch information
objectiser authored Jan 12, 2018
1 parent 6421d94 commit 537c997
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 12 additions & 0 deletions jaeger-production-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ items:
volumeMounts:
- name: jaeger-configuration-volume
mountPath: /conf
env:
- name: SPAN_STORAGE_TYPE
valueFrom:
configMapKeyRef:
name: jaeger-configuration
key: span-storage-type
volumes:
- configMap:
name: jaeger-configuration
Expand Down Expand Up @@ -128,6 +134,12 @@ items:
volumeMounts:
- name: jaeger-configuration-volume
mountPath: /conf
env:
- name: SPAN_STORAGE_TYPE
valueFrom:
configMapKeyRef:
name: jaeger-configuration
key: span-storage-type
volumes:
- configMap:
name: jaeger-configuration
Expand Down
7 changes: 2 additions & 5 deletions production-elasticsearch/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2017 The Jaeger Authors
# Copyright 2017-2018 The Jaeger Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand All @@ -23,9 +23,8 @@ items:
app: jaeger
jaeger-infra: configuration
data:
span-storage-type: elasticsearch
collector: |
span-storage:
type: elasticsearch
es:
server-urls: http://elasticsearch:9200
username: elastic
Expand All @@ -34,8 +33,6 @@ items:
zipkin:
http-port: 9411
query: |
span-storage:
type: elasticsearch
es:
server-urls: http://elasticsearch:9200
username: elastic
Expand Down
3 changes: 2 additions & 1 deletion production/cassandra.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2017 The Jaeger Authors
# Copyright 2017-2018 The Jaeger Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand All @@ -23,6 +23,7 @@ items:
app: jaeger
jaeger-infra: configuration
data:
span-storage-type: cassandra
collector: |
collector:
zipkin:
Expand Down

0 comments on commit 537c997

Please sign in to comment.