-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- using current version of penumbra - getting config from running RPC node - being a fullnode, not a sentry
- Loading branch information
1 parent
5a2822d
commit 44ec317
Showing
1 changed file
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | ||
|