Created
July 9, 2021 21:09
-
-
Save Javiseeker/76dcaf6c63633570a5e91ba22713babd to your computer and use it in GitHub Desktop.
Tye.yaml file to instance an IPFS Cluster and its corresponding IPFS Node.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ipfsClusterPod | |
| services: | |
| - name: ipfsNode | |
| replicas: 1 # number of times to launch the application | |
| image: ipfs/go-ipfs:latest | |
| env: # array of environment variables | |
| # - name: IPFS_SWARM_KEY | |
| # value: /key/swarm/psk/1.0.0/b87ba5d2a00e1fb91d386411639897605e39813b054c434fe9b6fc60aab07ea5 | |
| - name: IPFS_LOGGING | |
| value: debug | |
| bindings: # optional array of bindings (ports, connection strings) | |
| - port: 4001 # ipfs swarm - expose if needed/wanted | |
| protocol: http | |
| name: ipfsSwarm | |
| - port: 5001 # ipfs api - expose if needed/wanted | |
| protocol: http | |
| name: ipfsApi | |
| - port: 8080 # ipfs gateway - expose if needed/wanted | |
| protocol: http | |
| name: ipfsGateway | |
| volumes: | |
| - source: C:/Users/JavierAlonso/Desktop/Projects/our_glass/CDN/ipfs_cluster_k8s/ipfs_cluster_pod_data/ | |
| target: /data/ipfs | |
| - name: ipfsCluster | |
| replicas: 1 | |
| image: ipfs/ipfs-cluster:latest | |
| env: | |
| - name: CLUSTER_PEERNAME | |
| value: tcluster0 | |
| - name: CLUSTER_SECRET | |
| value: 1aebe6d1ff52d96241e00d1abbd1be0743e3ccd0e3f8a05e3c8dd2bbbddb7b93 | |
| - name: CLUSTER_IPFSHTTP_NODEMULTIADDRESS | |
| value: /dns4/ipfsNode0/tcp/5001 | |
| - name: CLUSTER_CRDT_TRUSTEDPEERS | |
| value: '*' | |
| - name: CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS | |
| value: /ip4/0.0.0.0/tcp/9094 | |
| - name: CLUSTER_MONITORPINGINTERVAL | |
| value: 2s | |
| bindings: | |
| - name: ipfsClusterBinding | |
| - port: 9094 | |
| protocol: http | |
| name: port1 | |
| - port: 9095 | |
| protocol: http | |
| name: port2 | |
| - port: 9096 | |
| protocol: http | |
| name: port3 | |
| volumes: | |
| - source: C:/Users/JavierAlonso/Desktop/Projects/our_glass/CDN/ipfs_cluster_k8s/ipfs_cluster_pod_data/ | |
| target: /data/ipfs-cluster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment