apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: Database for Jaeger.
  labels:
    deploy: jaeger
  name: jaeger-cassandra
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: jaeger-cassandra
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: jaeger-cassandra
    spec:
      containers:
      - env:
        - name: HEAP_NEWSIZE
          value: 1G
        - name: MAX_HEAP_SIZE
          value: 6G
        image: sourcegraph/cassandra:3@sha256:5a6c978d95c4b1444bed9b6f082468db417dbade80c31cb5e3137d5fb8d915a1
        name: cassandra
        ports:
        - containerPort: 9042
          name: cql
        resources:
          limits:
            cpu: "4"
            memory: 8Gi
          requests:
            cpu: 500m
            memory: 2Gi
        volumeMounts:
        - mountPath: /var/lib/cassandra
          name: data
      volumes:
      - name: data
        persistentVolumeClaim:
          claimName: jaeger
