a5ff5016c9
* port changes * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * Merge remote-tracking branch 'upstream/master' * files created * Merge remote-tracking branch 'upstream/master' into coyle/kad-tests * wip * Merge remote-tracking branch 'upstream/master' into coyle/kad-tests * wip * remove bkad dependencie from tests * wip * wip * wip * wip * wip * updated coyle/kademlia * wip * cleanup * ports * overlay upgraded * linter fixes * piecestore kademlia newID * add changes from kad demo * PR comments addresses * go func * force travis build * fixed merge conflicts * fixed merge conflicts * Merge branch 'coyle/kad-tests' of https://github.com/coyle/storj into coyle/kad-tests * linter issues * linting issues * fixed merge conflicts * linter is stupid
78 lines
1.5 KiB
YAML
78 lines
1.5 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: overlay
|
|
labels:
|
|
app: overlay
|
|
spec:
|
|
ports:
|
|
- name: grpc
|
|
port: 7070
|
|
targetPort: 7070
|
|
- name: http
|
|
port: 8081
|
|
targetPort: 8081
|
|
- name: kademlia
|
|
protocol: UDP
|
|
port: 8080
|
|
target: 8080
|
|
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: "7070"
|
|
- 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
|
|
|