Skip to content

Commit

Permalink
convert to (#429)
Browse files Browse the repository at this point in the history
- using current version of penumbra
- getting config from running RPC node
- being a fullnode, not a sentry
  • Loading branch information
PFC-developer committed Jul 8, 2024
1 parent 5a2822d commit 44ec317
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions config/samples/cosmos_v1_cosmosfullnode_penumbra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
apiVersion: cosmos.strange.love/v1
kind: CosmosFullNode
metadata:
name: penumbra-testnet-sentry
name: penumbra-mainnet-sentry
spec:
type: Sentry
#type: Sentry
type: FullNode
replicas: 3
chain:
chainID: penumbra-testnet-deimos-8
network: testnet
chainID: penumbra-1
network: mainnet
versions:
# Genesis version
- height: 0
image: ghcr.io/strangelove-ventures/heighliner/cometbft:v0.37.5
containers:
pd: ghcr.io/strangelove-ventures/heighliner/penumbra:v0.77.2
pd: ghcr.io/strangelove-ventures/heighliner/penumbra:v0.79.0-alpha.5
- height: 734700
image: ghcr.io/strangelove-ventures/heighliner/cometbft:v0.37.5
containers:
Expand All @@ -33,7 +34,7 @@ spec:
[fastsync]
version = "v0"
seeds: [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:42656
seeds: "tcp://[email protected]:26656,tcp://[email protected]:26656,tcp://[email protected]:26656,tcp://[email protected]:21956,tcp://[email protected]:26656,tcp://[email protected]:26656,tcp://[email protected]:32670"
genesisScript: echo "No need for genesis"
addrbookScript: echo "No need for address book"
skipInvariants: false
Expand All @@ -46,15 +47,16 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: penumbra-testnet-sentry
app.kubernetes.io/name: penumbra-mainnet-sentry
topologyKey: kubernetes.io/hostname
initContainers:
# Initialize the cometbft tmp configuration for the correct version, used for config overlay
- name: chain-init
command:
- cometbft
- init
- --home /home/operator/.tmp
- sh
- -c
- |
/bin/cometbft init --home /home/operator/.tmp
volumeMounts:
- mountPath: /home/operator/.tmp
name: vol-tmp
Expand All @@ -64,12 +66,14 @@ spec:

# Initialize the cometbft and pd data from a snapshot if it is not already initialized
- name: pd-init
image: ghcr.io/strangelove-ventures/heighliner/penumbra:v0.77.2
image: ghcr.io/strangelove-ventures/heighliner/penumbra:v0.79.0-alpha.5

# use a trusted RPC endpoint here
command:
- sh
- -c
- |
HOME=/home/operator/cosmos pd testnet join --archive-url "https://snapshots.penumbra.zone/testnet/pd-migrated-state-76-77.tar.gz" || echo "Already initialized"
HOME=/home/operator/cosmos pd network join --moniker strangelove http://64.23.244.20:26657 || echo "Already initialized"
volumeMounts:
- mountPath: /home/operator/cosmos
name: vol-chain-home
Expand All @@ -83,7 +87,7 @@ spec:
- -c
- |
HOME=/home/operator/cosmos
NODE0=$HOME/.penumbra/testnet_data/node0
NODE0=$HOME/.penumbra/network_data/node0
mv $NODE0/cometbft/* $HOME/ || echo "Already moved cometbft data"
mv $NODE0/pd $HOME/ || echo "Already moved pd data"
volumeMounts:
Expand Down

0 comments on commit 44ec317

Please sign in to comment.