apiVersion: apps/v1
kind: Deployment
metadata:
  name: jaeger
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jaeger
  template:
    metadata:
      labels:
        app: jaeger
    spec:
      containers:
        - name: jaeger-container
          image: jaegertracing/all-in-one:latest
          env:
            - name: CASSANDRA_SERVERS
              value: "{{CassandraHost}}"
            - name: CASSANDRA_KEYSPACE
              value: "jaeger_v1"
            - name: CASSANDRA_USERNAME
              value: "cassandra"
            - name: CASSANDRA_PASSWORD
              value: "{{Password}}"
            - name: SPAN_STORAGE_TYPE
              value: "cassandra"
            - name: COLLECTOR_OTLP_ENABLED
              value: "true"
          ports:
            - containerPort: 16686
            - containerPort: 4317
---
apiVersion: v1
kind: Service
metadata:
  name: jaeger
spec:
  selector:
    app: jaeger
  ports:
    - name: http-query
      port: 16686
      targetPort: 16686
    - name: applicationport
      port: 4317
      targetPort: 4317
