mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
740a9b76a7
* Add nginx ingress for proof-of-work namespace * connect beacon-chain to pow namespace geth-nodes for websocket connections * Added relay to beacon-chain * Route inbound TCP traffic on port 20000 to beacon-relay * Add bootnode * Add a basic pk * checkpoint * Added flag for p2p port * Register flag with main * Set P2P port specifically * Add beacon chain config * add deployvrc job * Add deployvrc service account * review * gazelle * a cluster is needed, i guess
100 lines
2.9 KiB
YAML
100 lines
2.9 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1beta1
|
|
metadata:
|
|
name: faucet
|
|
namespace: pow
|
|
labels:
|
|
component: faucet
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
universe: geth
|
|
component: faucet
|
|
template:
|
|
metadata:
|
|
labels:
|
|
universe: geth
|
|
component: faucet
|
|
spec:
|
|
priorityClassName: batch-priority
|
|
containers:
|
|
- name: faucet
|
|
image: ethereum/client-go:alltools-stable
|
|
ports:
|
|
- containerPort: 8080
|
|
name: api
|
|
- containerPort: 30303
|
|
name: discovery-tcp
|
|
protocol: TCP
|
|
- containerPort: 30303
|
|
name: discovery-udp
|
|
protocol: UDP
|
|
# Use /bin/sh -c to execute geth so that we have access to HOSTNAME in
|
|
# the command arguments.
|
|
# https://github.com/kubernetes/kubernetes/issues/57726
|
|
command:
|
|
- "/bin/sh"
|
|
- "-c"
|
|
- >
|
|
touch /tmp/pwd;
|
|
faucet
|
|
-account.json=/data/accounts/account.json
|
|
-account.pass=/tmp/pwd
|
|
-apiport=8080
|
|
-bootnodes=enode://$(BOOTNODE_PUBKEY)@$(GETH_BOOTNODE_V5_SERVICE_HOST):$(GETH_BOOTNODE_V5_SERVICE_PORT_BOOTNODE_UDP)
|
|
-ethport=30303
|
|
-ethstats=$HOSTNAME:$(ETHSTATS_WS_SECRET)@$(GETH_ETHSTATS_SERVICE_HOST):$(GETH_ETHSTATS_SERVICE_PORT)
|
|
-faucet.amount=35
|
|
-faucet.minutes=1440
|
|
-faucet.name=validator-faucet
|
|
-faucet.tiers=3
|
|
-genesis=/data/genesis.json
|
|
-loglevel=3
|
|
-network=1337
|
|
-noauth
|
|
env:
|
|
- name: ETHSTATS_WS_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: ethstats-secrets
|
|
key: ws
|
|
- name: BOOTNODE_PUBKEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: geth-bootnode-secret
|
|
key: public_key
|
|
volumeMounts:
|
|
- name: genesis
|
|
mountPath: "/data"
|
|
readOnly: true
|
|
- name: accounts
|
|
mountPath: "/data/accounts"
|
|
readOnly: true
|
|
- name: faucet-data
|
|
mountPath: "/root/.faucet/keys"
|
|
resources:
|
|
requests:
|
|
memory: "500Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "750Mi"
|
|
cpu: "100m"
|
|
volumes:
|
|
- name: genesis
|
|
secret:
|
|
secretName: geth-genesis
|
|
items:
|
|
- key: json
|
|
path: genesis.json
|
|
- name: accounts
|
|
secret:
|
|
secretName: geth-faucet-accounts-secret
|
|
items:
|
|
- key: json
|
|
path: account.json
|
|
- key: password
|
|
path: password
|
|
- name: faucet-data
|
|
emptyDir: {}
|