Peer resource spec parameters are summrized in the following table:
|initProfiles||Array||List of initial configuration profiles||default-datastore|
|apiHost||string||API server host||0.0.0.0|
|apiPort||number||API server port||5001|
|gatewayHost||string||Local ipfs gateway host||0.0.0.0|
|gatewayPort||number||Local ipfs gateway port||8080|
|routing||string||Content routing mechanism||dht|
|swarmKeySecret||string||Name of the k8s secret holding swarm key|
|resources||object||Compute and storage resources|
initProfiles is the list of initial ipfs configuration profile.
initialProfiles available values are
initProfiles can't be updated (immutable).
apiHost is API server host.
If you set
apiHost to host other than
0.0.0.0, api calls forwarded to the container won't hit the API server. This is useful if you want to disallow calls to API server.
apiPort is API server port.
gatewayHost is local ipfs gateway host.
If you set
gatewayHost to host other than
0.0.0.0, gateway won't work. This is useful if you want to disable to access gateway from outside.
gatewayPort is API server port.
routing is the content routing mechanism.
routing available values are
swarmKeySecret is the kubernetes secret name tha holds the swarm key in a key called
resources allocates compute and storage resources to the peer.
resources object has the following fields:
|cpu||string||number of cpu cores this peer requires|
|cpuLimit||string||number of cpu cores this peer is limited to|
|memory||string||memory this peer requires|
|memoryLimit||string||memory this peer is limited to|
|storage||string||disk space this peer requires|
Memory and storage requests and limits must use the pattern
^[1-9][0-9]*[KMGTPE]i$ for example
cpu requests and limits must use the pattern
^[1-9][0-9]*m?$ for example
1000m (which is equal to
1500m which is 1.5 core,
2 cores, and
cpuLimit can't be less than
memoryLimit can't be less than or equal to