apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    sidecar.jaegertracing.io/inject: jaeger
  name: dataflow-ng-http
spec:
  replicas: 1
  selector:
    matchLabels:
      app: dataflow-ng-http
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: dataflow-ng-http
    spec:
      containers:
        - args:
            - http
            - --config=/etc/dataflow/config.yaml
          command:
            - /dataflow
          image: cp9.local/dataflow:placeholder
          imagePullPolicy: IfNotPresent
          name: dataflow-ng-http
          readinessProbe:
            failureThreshold: 10
            initialDelaySeconds: 5
            periodSeconds: 5
            successThreshold: 1
            tcpSocket:
              port: 11000
            timeoutSeconds: 1
          volumeMounts:
            - mountPath: /etc/dataflow
              name: dataflow-ng-conf
              readOnly: true
      volumes:
        - configMap:
            name: dataflow-ng-conf
          name: dataflow-ng-conf
