ipfs-dply.yaml 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ipfs
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: ipfs
  10. template:
  11. metadata:
  12. labels:
  13. name: ipfs
  14. spec:
  15. containers:
  16. - name: ipfs
  17. image: ipfs/kubo:latest
  18. env:
  19. - name: IPFS_PROFILE
  20. value: "server"
  21. volumeMounts:
  22. # Persistent volume, for when files are downloaded.
  23. - name: ipfs
  24. mountPath: /export
  25. - name: staging
  26. mountPath: /data/ipfs
  27. ports:
  28. - containerPort: 4001
  29. name: quic
  30. - containerPort: 5001
  31. name: rpc
  32. - containerPort: 8080
  33. name: http
  34. resources:
  35. requests:
  36. memory: "1100Mi"
  37. cpu: "100m"
  38. volumes:
  39. - name: ipfs
  40. persistentVolumeClaim:
  41. claimName: ipfs
  42. - name: staging
  43. emptyDir:
  44. sizeLimit: 10Gi