apiVersion: apps/v1
kind: Deployment
metadata:
  name: cam-sim-1
  labels:
    app: cam-sim
spec:
  selector:
    matchLabels:
      app: cam-sim-1
  replicas: 1
  template:
    metadata:
      labels:
        app: cam-sim-1
    spec:
      containers:
        - name: cam-sim
          image: cam-sim:latest
          imagePullPolicy: Always
          envFrom:
            - configMapRef:
                name: cam-sim-conf-1
            - configMapRef:
                name: kafka-ca-cert
          volumeMounts:
            - name: kafka-ca-cert-volume
              mountPath: /mnt/kafka-ca-cert
      volumes:
        - name: kafka-ca-cert-volume
          configMap:
            name: kafka-ca-cert
            defaultMode: 420
      restartPolicy: Always
