---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: snoopy-data-endpoint
  namespace: snoopy-operator
  labels:
    snoopy: "dataEndpoint"
spec:
  selector:
    matchLabels:
      snoopy: "dataEndpoint"
  replicas: 1
  template:
    metadata:
      name: snoopy-data-endpoint
      namespace: snoopy-operator
      labels:
        snoopy: "dataEndpoint"
    spec:
      serviceAccountName: snoopy-operator-sa
      containers:
      - command:
        - /server
        args:
        - "51001"
        ports:
        - containerPort: 51001
        image: "quay.io/fennec-project/snoopy-data-endpoint:0.0.1"
        imagePullPolicy: Always
        name: snoopy-data-endpoint
        securityContext:
          privileged: true