325a70d514
* add reference to dht to overlay client struct * wip * wip * Implement FindNode * get nodes * WIP * Merge in Dennis kademlia code, get it working with our code * ping and moar * WIP trying to get cache working with kademlia * WIP more wiring up * WIP * Update service cli commands * WIP * added GetNodes * added nodes to Kbucket * default transport changed to TCP * GetBuckets interface changed * filling in more routing * timestamp methods * removed store * Added initial network overlay explorer page * Updating and building with dockerfile * Working on adding bootstrap node code * WIP merging in dennis' code * WIP * connects cache to pkg/kademlia implementation * WIP redis cache * testing * Add bootstrap network function for CLI usage * cleanup * call bootstrap on init network * Add BootstrapNetwork function to interface * Merge in dennis kad code * WIP updates to redis/overlay client interface * WIP trying to get the DHT connected to the cache * go mod & test * deps * Bootstrap node now setting up correctly - Need to pass it through CLI commands better * WIP adding refresh and walk functions, added cli flags - added cli flags for custom bootstrap port and ip * PR comments addressed * adding FindStorageNodes to overlay cache * fix GetBucket * using SplitHostPort * Use JoinHostPort * updates to findstoragenodes response and request * WIP merge in progress, having issues with a panic * wip * adjustments * update port for dht bootstrap test * Docker * wip * dockerfile * fixes * makefile changes * Update port in NewKademlia call * Update local kademlia DHT config * kubernetes yaml * cleanup * making tests pass * k8s yaml * lint issues * Edit cli flags to allow for configurable bootstrap IP and Port args * cleanup * cache walking the network now * Rough prototype of Walk function laid out * Move walk function into bootstrap function * Update dht.go * changes to yaml * goimports
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: overlay
|
|
labels:
|
|
app: overlay
|
|
spec:
|
|
ports:
|
|
- name: grpc
|
|
port: 8080
|
|
targetPort: 8080
|
|
- name: http
|
|
port: 8081
|
|
targetPort: 8081
|
|
selector:
|
|
app: overlay
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: overlay
|
|
labels:
|
|
app: overlay
|
|
spec:
|
|
minReadySeconds: 10
|
|
revisionHistoryLimit: 3
|
|
strategy:
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: overlay
|
|
spec:
|
|
terminationGracePeriodSeconds: 60
|
|
containers:
|
|
- image: "docker.io/storjlabs/overlay"
|
|
imagePullPolicy: Always
|
|
name: overlay
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8081
|
|
initialDelaySeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8081
|
|
initialDelaySeconds: 10
|
|
env:
|
|
- name: REDIS_ADDRESS
|
|
value: "35.184.203.66:6379"
|
|
- name: REDIS_PASSWORD
|
|
value: ""
|
|
- name: REDIS_DB
|
|
value: "1"
|
|
- name: OVERLAY_PORT
|
|
value: "8080"
|
|
- name: HTTP_PORT
|
|
value: "8081"
|
|
ports:
|
|
- name: grpc
|
|
containerPort: 8080
|
|
- name: http
|
|
containerPort: 8081
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 300m
|
|
memory: 128Mi
|
|
|