apiVersion: apps/v1
kind: Deployment
metadata:
  name: zipkin
spec:
  replicas: 1
  selector:
    matchLabels:
      app: zipkin
  template:
    metadata:
      labels:
        app: zipkin
    spec:
      containers:
        - image: openzipkin/zipkin
          name: zipkin
          imagePullPolicy: Always
          env:
            - name: STORAGE_TYPE
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: STORAGE_TYPE
            - name: ES_HOSTS
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: ES_HOSTS
            - name: ES_INDEX_SHARDS
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: ES_INDEX_SHARDS
            - name: ES_INDEX_REPLICAS
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: ES_INDEX_REPLICAS
            - name: SELF_TRACING_ENABLED
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: SELF_TRACING_ENABLED
            - name: JAVA_OPTS
              valueFrom:
                configMapKeyRef:
                  name: zipkin-cm
                  key: JAVA_OPTS
          ports:
            - containerPort: 9411
          resources:
            requests:
              cpu: 100m
              memory: 200Mi
status: {}
