2018-07-30 14:04:47 +00:00
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
metadata:
|
|
|
|
name: geth-ethstats
|
2018-11-28 05:27:21 +00:00
|
|
|
namespace: pow
|
2018-07-30 14:04:47 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
component: ethstats
|
|
|
|
universe: geth
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: ethstats
|
|
|
|
universe: geth
|
|
|
|
spec:
|
|
|
|
priorityClassName: production-priority
|
|
|
|
containers:
|
|
|
|
- name: ethstats
|
|
|
|
image: ethereumex/eth-netstats:latest
|
|
|
|
command: ["npm"]
|
|
|
|
args: ["start"]
|
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
name: web
|
|
|
|
env:
|
|
|
|
- name: WS_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: ethstats-secrets
|
|
|
|
key: ws
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "100Mi"
|
|
|
|
cpu: "50m"
|
|
|
|
limits:
|
|
|
|
memory: "250Mi"
|
|
|
|
cpu: "100m"
|