prysm-pulse/k8s/beacon-chain/ssz-server.yaml
Preston Van Loon 9fb5bbd662 SSZ web api for decoding input data (#2473)
* first pass ssz server for decoding deposit input data

* fix decoding

* revert viz change on helper

* add image target

* use /api prefix, add deployment for cluster

* fix lint
2019-05-03 00:11:54 -05:00

71 lines
1.3 KiB
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: ssz-server
namespace: beacon-chain
labels:
app: beacon-chain
component: ssz-server
version: v1
spec:
replicas: 2
selector:
matchLabels:
app: beacon-chain
component: ssz-server
version: v1
template:
metadata:
labels:
app: beacon-chain
component: ssz-server
version: v1
spec:
priorityClassName: production-priority
containers:
- name: site
image: gcr.io/prysmaticlabs/prysm/ssz-server:latest
livenessProbe:
httpGet:
path: /healthz
port: 4000
resources:
requests:
cpu: "100m"
ports:
- containerPort: 4000
name: http
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: ssz-server
namespace: beacon-chain
spec:
scaleTargetRef:
apiVersion: extensions/v1beta1
kind: Deployment
name: ssz-server
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 80
---
kind: Service
apiVersion: v1
metadata:
name: ssz-server
namespace: beacon-chain
spec:
selector:
app: beacon-chain
component: ssz-server
ports:
- port: 4000
targetPort: 4000
name: http
type: ClusterIP