apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  labels:
    service: dnsseeder
  name: dnsseeder
spec:
  strategy:
    type: Recreate
  replicas: 1
  selector:
    matchLabels:
      service: dnsseeder
  template:
    metadata:
      labels:
        service: dnsseeder
    spec:
      containers:
      - image: zquestz/dnsseeder:latest
        command: ["dnsseeder"]
        args: ["-s", "-datadir", "/data", "-netfile", "mainnet-all.json,mainnet-filtered.json,mainnet-node-cf.json,testnet-all.json,testnet-filtered.json,testnet-node-cf.json"]
        name: dnsseeder
        volumeMounts:
          - mountPath: /data
            name: dnsseeder-data
        resources:
          requests:
            memory: "1Gi"
        ports:
        - containerPort: 8053
          protocol: UDP
      restartPolicy: Always
      volumes:
        - name: dnsseeder-data
          gcePersistentDisk:
            pdName: dnsseeder-data
            fsType: ext4
