storj/cmd/satellite/satellite.yaml
Egon Elbre ec589a8289 all: fix comments about grpc
Change-Id: Id830fbe2d44f083c88765561b6c07c5689afe5bd
2020-05-11 13:05:34 +03:00

78 lines
1.6 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: satellite
labels:
app: satellite
spec:
ports:
- name: rpc
port: 7070
targetPort: 7070
- name: http
port: 8081
targetPort: 8081
- name: kademlia
protocol: UDP
port: 8080
target: 8080
selector:
app: satellite
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: satellite
labels:
app: satellite
spec:
minReadySeconds: 10
revisionHistoryLimit: 3
strategy:
rollingUpdate:
maxUnavailable: 1
replicas: 1
template:
metadata:
labels:
app: satellite
spec:
terminationGracePeriodSeconds: 60
containers:
- image: "docker.io/storjlabs/satellite"
imagePullPolicy: Always
name: satellite
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: rpc
containerPort: 8080
- name: http
containerPort: 8081
resources:
requests:
cpu: 200m
memory: 64Mi
limits:
cpu: 300m
memory: 128Mi