Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
adds ipfs-cluster REST API, and ipfs proxy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Jun 8, 2020
1 parent 20d84c5 commit 58e85d0
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ data:
ipfs-cluster-service init
fi
# Listen on port 9094 (Cluster REST API) on all interfaces
sed -i -e 's/\/ip4\/127.0.0.1\/tcp\/9094/\/ip4\/0.0.0.0\/tcp\/9094/' /data/ipfs-cluster/service.json
PEER_HOSTNAME=`cat /proc/sys/kernel/hostname`
grep -q ".*$SVC_NAME-0.*" /proc/sys/kernel/hostname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
port: 5001
- name: gateway
port: 8080
- name: clusterapi
port: 9094
# ipfsproxy here is the ipfs-cluster API proxy
- name: ipfsproxy
port: 9095
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ spec:
backend:
serviceName: {{ template "ipfsCluster.fullname" . }}
servicePort: 9999 # ipfs-proxy
- path: /add
backend: &cluster_api_service
serviceName: {{ template "ipfsCluster.fullname" . }}
servicePort: 9094
- path: /id
backend: *cluster_api_service
- path: /version
backend: *cluster_api_service
- path: /pins
backend: *cluster_api_service
- path: /api/v0/add
backend: &api_service
serviceName: {{ template "ipfsCluster.fullname" . }}
Expand Down Expand Up @@ -91,6 +101,16 @@ spec:
backend:
serviceName: {{ template "ipfsCluster.fullname" . }}
servicePort: 9999 # ipfs-proxy
- path: /add
backend: &cluster_api_service
serviceName: {{ template "ipfsCluster.fullname" . }}
servicePort: 9999
- path: /id
backend: *cluster_api_service
- path: /version
backend: *cluster_api_service
- path: /pins
backend: *cluster_api_service
- path: /api/v0/add
backend: &api_service
serviceName: {{ template "ipfsCluster.fullname" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ spec:
# Most external usage is through ipfs-proxy, but ipns uses 8080
- name: swarm
port: 4001
- name: api
port: 5001
- name: gateway
port: 8080
# ipfsproxy here is the ipfs-cluster API proxy
- name: ipfsproxy
port: 9095
- name: clusterswarm
port: 9096
- name: proxy
Expand Down
Binary file modified devops/kubernetes/values/origin/secrets-dev.enc
Binary file not shown.
Binary file modified devops/kubernetes/values/origin/secrets-prod.enc
Binary file not shown.
Binary file modified devops/kubernetes/values/origin/secrets-staging.enc
Binary file not shown.

0 comments on commit 58e85d0

Please sign in to comment.