change to captain and commander
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
This commit is contained in:
parent
d7afd09da5
commit
64bb5fafd2
|
@ -2,8 +2,22 @@
|
||||||
|
|
||||||
cd /root
|
cd /root
|
||||||
|
|
||||||
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> peer.key
|
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> captain-cluster.key
|
||||||
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > peer.id
|
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > captain-cluster.id
|
||||||
|
rm /root/keygen.stderr
|
||||||
|
|
||||||
|
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> commander-cluster.key
|
||||||
|
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > commander-cluster.id
|
||||||
|
rm /root/keygen.stderr
|
||||||
|
|
||||||
|
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> captain-ipfs.key
|
||||||
|
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > captain-ipfs.id
|
||||||
|
rm /root/keygen.stderr
|
||||||
|
|
||||||
|
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> commander-ipfs.key
|
||||||
|
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > commander-ipfs.id
|
||||||
|
rm /root/keygen.stderr
|
||||||
|
|
||||||
xxd -p -l 32 -c 32 /dev/random | tr -d '\n' > cluster.key
|
xxd -p -l 32 -c 32 /dev/random | tr -d '\n' > cluster.key
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
@ -13,8 +27,14 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: ipfs-config
|
name: ipfs-config
|
||||||
data:
|
data:
|
||||||
bootstrap-peer-id: |-
|
captain-cluster-id: |-
|
||||||
$(cat peer.id)
|
$(cat captain-cluster.id)
|
||||||
|
commander-cluster-id: |-
|
||||||
|
$(cat commander-cluster.id)
|
||||||
|
captain-ipfs-id: |-
|
||||||
|
$(cat captain-ipfs.id)
|
||||||
|
commander-ipfs-id: |-
|
||||||
|
$(cat commander-ipfs.id)
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
@ -23,7 +43,12 @@ metadata:
|
||||||
stringData:
|
stringData:
|
||||||
cluster-secret: |-
|
cluster-secret: |-
|
||||||
$(xxd -p -l 32 -c 32 /dev/random)
|
$(xxd -p -l 32 -c 32 /dev/random)
|
||||||
data:
|
captain-cluster-key: |-
|
||||||
bootstrap-peer-priv-key: |-
|
$(base64 -w 0 captain-cluster.key)
|
||||||
$(base64 -w 0 peer.key)
|
commander-cluster-key: |-
|
||||||
|
$(base64 -w 0 commander-cluster.key)
|
||||||
|
captain-ipfs-key: |-
|
||||||
|
$(base64 -w 0 captain-ipfs.key)
|
||||||
|
commander-ipfs-key: |-
|
||||||
|
$(base64 -w 0 commander-ipfs.key)
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user