--- # Version 2021.9.5.001
apiVersion: apps/v1
kind: Deployment
metadata:
  name: batfish-deploy
  labels:
    app: batfish
spec:
  replicas: 1
  selector:
    matchLabels:
      app: batfish
  template:
    metadata:
      labels:
        app: batfish
    spec:
      terminationGracePeriodSeconds: 1
      containers:
      - name: batfish
        image: batfish/allinone:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 8888
        - containerPort: 9997
        - containerPort: 9996
        volumeMounts:
        - name: batfish-data
          mountPath: /data
        resources:
          requests:
            memory: "512Mi"
            cpu: "250m"
          limits:
            memory: "1Gi"
            cpu: "500m"
      volumes:
      - name: batfish-data
        persistentVolumeClaim:
          claimName: batfish-claim
