Created
December 25, 2017 01:54
-
-
Save garystafford/1f8a0b9b9e69664736f62b9dcc3fd42f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Revised copy of Istio v0.4.0 file with required env vars - | |
# GOOGLE_APPLICATION_CREDENTIALS and PROJECT_ID added using a ConfigMap | |
# *** Need to add credentials json file contents to zipkin-to-stackdriver-creds.yaml *** | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: zipkin-to-stackdriver | |
namespace: istio-system | |
annotations: | |
sidecar.istio.io/inject: "false" | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: zipkin-to-stackdriver | |
template: | |
metadata: | |
name: zipkin-to-stackdriver | |
labels: | |
app: zipkin-to-stackdriver | |
spec: | |
containers: | |
- name: zipkin-to-stackdriver | |
image: gcr.io/stackdriver-trace-docker/zipkin-collector | |
imagePullPolicy: IfNotPresent | |
volumeMounts: | |
- mountPath: /tmp | |
name: zipkin-stackdriver-creds | |
env: | |
- name: GOOGLE_APPLICATION_CREDENTIALS | |
value: "/tmp/zipkin-to-stackdriver-creds.json" | |
- name: PROJECT_ID | |
value: "voter-api-kub-demo" | |
ports: | |
- name: zipkin | |
containerPort: 9411 | |
volumes: | |
- name: zipkin-to-stackdriver-creds | |
configMap: | |
name: zipkin-to-stackdriver-creds | |
items: | |
- key: config | |
path: zipkin-to-stackdriver-creds.json | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: zipkin-to-stackdriver | |
namespace: istio-system # <-- Added - missing... | |
spec: | |
ports: | |
- name: zipkin | |
port: 9411 | |
selector: | |
app: zipkin-to-stackdriver | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment