monerod deployment fix
This commit is contained in:
parent
e7f1285d38
commit
9b769a9dbb
@ -18,13 +18,14 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: fetch-monero-cli
|
- name: fetch-monero-cli
|
||||||
image: debian:bookworm-slim
|
image: debian:bookworm-slim
|
||||||
command: ["/bin/sh","-lc"]
|
command: ["/bin/sh","-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
set -euo pipefail
|
set -euxo pipefail
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl bzip2
|
apt-get install -y --no-install-recommends ca-certificates curl bzip2
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
ARCH="$(uname -m)"
|
ARCH="$(uname -m)"
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
x86_64) F="monero-linux-x64" ;;
|
x86_64) F="monero-linux-x64" ;;
|
||||||
@ -32,8 +33,11 @@ spec:
|
|||||||
armv7l) F="monero-linux-armv7" ;;
|
armv7l) F="monero-linux-armv7" ;;
|
||||||
*) echo "Unsupported arch: $ARCH" >&2; exit 1 ;;
|
*) echo "Unsupported arch: $ARCH" >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
VER="v0.18.3.4" # set the version you want
|
|
||||||
URL="https://downloads.getmonero.org/cli/${F}-${VER}.tar.bz2"
|
VER="v0.18.4.1"
|
||||||
|
# Prefer GitHub release URL (stable + explicit version):
|
||||||
|
URL="https://github.com/monero-project/monero/releases/download/${VER}/${F}-${VER}.tar.bz2"
|
||||||
|
|
||||||
echo "Downloading $URL"
|
echo "Downloading $URL"
|
||||||
cd /data
|
cd /data
|
||||||
curl -fL "$URL" -o monero.tar.bz2
|
curl -fL "$URL" -o monero.tar.bz2
|
||||||
@ -42,14 +46,18 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: monerod
|
- name: monerod
|
||||||
image: debian:bookworm-slim
|
image: debian:bookworm-slim
|
||||||
command: ["/bin/sh","-lc"]
|
command: ["/bin/sh","-c"]
|
||||||
args: ["exec /data/monerod --data-dir=/data --non-interactive --prune-blockchain --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18081 --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080"]
|
args:
|
||||||
volumeMounts:
|
- exec /data/monerod \
|
||||||
- { name: tmp, mountPath: /tmp }
|
--data-dir=/data \
|
||||||
- { name: data, mountPath: /data }
|
--non-interactive \
|
||||||
|
--prune-blockchain \
|
||||||
|
--rpc-bind-ip=0.0.0.0 --rpc-bind-port=18081 \
|
||||||
|
--p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080
|
||||||
ports:
|
ports:
|
||||||
- { containerPort: 18081, name: rpc }
|
- { containerPort: 18081, name: rpc }
|
||||||
- { containerPort: 18080, name: p2p }
|
- { containerPort: 18080, name: p2p }
|
||||||
@ -71,11 +79,11 @@ spec:
|
|||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
volumeMounts:
|
||||||
|
- { name: data, mountPath: /data }
|
||||||
|
- { name: tmp, mountPath: /tmp }
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim: { claimName: monerod-chain }
|
||||||
claimName: monerod-chain
|
|
||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: release-keys
|
|
||||||
configMap: { name: monero-release-keys }
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user