mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
81c2e4e94b
* first pass on pow faucet for testnet * delete unused thing * remove unneeded thing * remove other thing * https & remove a log * don't force redirect on https, its not working? * some renaming of stuff * lint * lint * some stablity config * move protos to proto directory, add generated pb file for go users * add health probe * add hpa and request cpu * handle err * some more config
95 lines
1.8 KiB
YAML
95 lines
1.8 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: testnet-site-alpha
|
|
namespace: beacon-chain
|
|
labels:
|
|
app: beacon-chain
|
|
component: testnet-site
|
|
version: alpha
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: beacon-chain
|
|
component: testnet-site
|
|
version: alpha
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: beacon-chain
|
|
component: testnet-site
|
|
version: alpha
|
|
spec:
|
|
priorityClassName: best-effort-priority
|
|
containers:
|
|
- name: site
|
|
image: gcr.io/prysmaticlabs/prysm-testnet-site:latest
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 80
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 3
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
---
|
|
apiVersion: autoscaling/v2beta1
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: testnet-site-alpha
|
|
namespace: beacon-chain
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
name: testnet-site-alpha
|
|
minReplicas: 2
|
|
maxReplicas: 10
|
|
metrics:
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
targetAverageUtilization: 80
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: testnet-site-alpha
|
|
namespace: beacon-chain
|
|
spec:
|
|
selector:
|
|
app: beacon-chain
|
|
component: testnet-site
|
|
version: alpha
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
name: http-nginx
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
name: alpha-prylabs-net
|
|
namespace: istio-system
|
|
spec:
|
|
hosts:
|
|
- alpha.prylabs.net
|
|
gateways:
|
|
- prylabs-wildcard-gateway
|
|
http:
|
|
- match:
|
|
- uri:
|
|
prefix: /
|
|
route:
|
|
- destination:
|
|
port:
|
|
number: 80
|
|
host: testnet-site-alpha.beacon-chain.svc.cluster.local
|
|
|