client.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: easyfl-client
  5. namespace: easyfl
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: easyfl-client
  11. template:
  12. metadata:
  13. labels:
  14. app: easyfl-client
  15. spec:
  16. containers:
  17. - name: easyfl-client
  18. image: easyfl-client
  19. imagePullPolicy: IfNotPresent
  20. env:
  21. - name: PYTHONUNBUFFERED
  22. value: "1"
  23. args: ["--is-remote", "True", "--local-port", "23400", "--server-addr", "easyfl-server-svc.easyfl:23501", "--tracker-addr", "easyfl-tracker-svc.easyfl:12666"]
  24. ports:
  25. - containerPort: 23501
  26. volumeMounts:
  27. - mountPath: /app/easyfl/datasets/femnist/data
  28. name: data-volume
  29. volumes:
  30. - name: data-volume
  31. hostPath:
  32. path: /home/zwm/easyfl/easyfl/datasets/femnist/data
  33. tolerations:
  34. - key: "node-role.kubernetes.io/master"
  35. operator: "Exists"
  36. effect: "NoSchedule"
  37. nodeSelector:
  38. kubernetes.io/hostname: "node1"