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
|
||||
|
||||
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> peer.key
|
||||
awk '/^ID for generated key:/ {print $5}' < keygen.stderr > peer.id
|
||||
/bin/ipfs-key "$@" 2> /root/keygen.stderr 1> captain-cluster.key
|
||||
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
|
||||
|
||||
cat << EOF
|
||||
|
@ -13,8 +27,14 @@ kind: ConfigMap
|
|||
metadata:
|
||||
name: ipfs-config
|
||||
data:
|
||||
bootstrap-peer-id: |-
|
||||
$(cat peer.id)
|
||||
captain-cluster-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
|
||||
kind: Secret
|
||||
|
@ -23,7 +43,12 @@ metadata:
|
|||
stringData:
|
||||
cluster-secret: |-
|
||||
$(xxd -p -l 32 -c 32 /dev/random)
|
||||
data:
|
||||
bootstrap-peer-priv-key: |-
|
||||
$(base64 -w 0 peer.key)
|
||||
captain-cluster-key: |-
|
||||
$(base64 -w 0 captain-cluster.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
|
||||
|
|
Loading…
Reference in New Issue
Block a user