---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/name: pixie
  name: pixie
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: pixie
  template:
    metadata:
      labels:
        app.kubernetes.io/name: pixie
    spec:
      volumes:
        - name: storage
          persistentVolumeClaim:
            claimName: minio-pv-claim
      containers:
        - args:
            - /data/images/
          command:
            - /pixie
          image: beryju/pixie:latest-amd64
          imagePullPolicy: Always
          name: pixie
          ports:
            - containerPort: 8080
              name: http
              protocol: TCP
          volumeMounts:
            - mountPath: /data
              name: storage
          livenessProbe:
            httpGet:
              path: /-/ping
              port: http
          readinessProbe:
            httpGet:
              path: /-/ping
              port: http
          resources:
            requests:
              cpu: 10m
              memory: 10M
            limits:
              cpu: 500m
              memory: 250M
