ec589a8289
Change-Id: Id830fbe2d44f083c88765561b6c07c5689afe5bd
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: piecestore
|
|
labels:
|
|
app: piecestore
|
|
spec:
|
|
ports:
|
|
- name: rpc
|
|
port: 7777
|
|
targetPort: 7777
|
|
- name: http
|
|
port: 7776
|
|
targetPort: 7776
|
|
selector:
|
|
app: piecestore
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: piecestore
|
|
labels:
|
|
app: piecestore
|
|
spec:
|
|
minReadySeconds: 10
|
|
revisionHistoryLimit: 3
|
|
strategy:
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: piecestore
|
|
spec:
|
|
terminationGracePeriodSeconds: 60
|
|
containers:
|
|
- image: "storjlabs/storagenode"
|
|
imagePullPolicy: Always
|
|
name: piecestore
|
|
env:
|
|
- name: PUBLIC_IP
|
|
value: "127.0.0.1"
|
|
- name: RPC_PORT
|
|
value: "7777"
|
|
- name: PS_DIR
|
|
value: "/home/"
|
|
ports:
|
|
- name: rpc
|
|
containerPort: 7777
|
|
- name: http
|
|
containerPort: 7776
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 300m
|
|
memory: 128Mi
|