apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: byedpi
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: byedpi
      app.kubernetes.io/part-of: byedpi
  template:
    metadata:
      labels:
        app.kubernetes.io/name: byedpi
        app.kubernetes.io/part-of: byedpi
    spec:
      tolerations:
      - key: "edge.cluster.local/not-schedulable"
        operator: "Equal"
        effect: "NoSchedule"
      - key: "workstation.cluster.local"
        operator: "Equal"
        value: "true"
        effect: "NoSchedule"
      hostNetwork: true
      containers:
      - name: byedpi
        image: harbor.home.wugi.info/library/byedpi@sha256:522a77b6f760c436364c80814bd74154a343428c14a45296e279cd486683dfcb
        ports:
        - name: socks5
          containerPort: 1081
          protocol: TCP
        command:
        - /usr/bin/ciadpi
        args:
        - --debug=2
        - --port=1081
        - --disorder=1
        - --auto=torst
        - --tlsrec=1+s
        resources:
          limits:
            cpu: 2000m
            memory: 1024Mi
          requests:
            cpu: 1000m
            memory: 512Mi
