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
port: 8080
target: 8080
selector:
---
apiVersion: extensions/v1beta1
kind: Deployment
minReadySeconds: 10
revisionHistoryLimit: 3
strategy:
rollingUpdate:
maxUnavailable: 1
replicas: 1
template:
terminationGracePeriodSeconds: 60
containers:
- image: "docker.io/storjlabs/overlay"
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /health
initialDelaySeconds: 30
readinessProbe:
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"
containerPort: 8080
containerPort: 8081
resources:
requests:
cpu: 200m
memory: 64Mi
limits:
cpu: 300m
memory: 128Mi