github.com/kotalco/kotal@v0.3.0/config/samples/ipfs/ipfs_v1alpha1_cluster_peer.yaml (about)

     1  apiVersion: ipfs.kotal.io/v1alpha1
     2  kind: ClusterPeer
     3  metadata:
     4    name: cluster-peer
     5  spec:
     6    # the follwing <id> and <privatekey> has been created using ipfs-key utility
     7    # https://github.com/whyrusleeping/ipfs-key
     8    # ipfs-key -type ed25519 | base64
     9    id: "12D3KooWBcEtY8GH4mNkri9kM3haeWhEXtQV7mi81ErWrqLYGuiq"
    10    # WARNING: DON'T use the following private key in production
    11    # KEY=CAESQOH/DvUJmeJ9z6m3wAStpkrlBwJQxIyNSK0YGf0EI5ZRGpwsWxl4wmgReqmHl8LQjTC2iPM0QbYAjeY3Z63AFnI=
    12    # kubectl create secret generic my-cluster-privatekey --from-literal=key=$KEY
    13    privateKeySecretName: my-cluster-privatekey
    14    consensus: crdt
    15    trustedPeers:
    16      - 12D3KooWBcEtY8GH4mNkri9kM3haeWhEXtQV7mi81ErWrqLYGuiq
    17      - 12D3KooWQ9yZnqowEDme3gSgS45KY9ZoEmAiGYRxusdEaqtFa9pr
    18    # can be obtained by deploying bare-peer sample
    19    # kubectl apply -f ipfs_v1alpha1_bare_peer.yaml
    20    peerEndpoint: /dns4/bare-peer/tcp/5001
    21    # WARNING: DON'T use the following cluster secret in production
    22    # CLUSTER_SECRET=$(openssl rand -hex 32)
    23    # kubectl create secret generic cluster-secret --from-literal=secret=$CLUSTER_SECRET
    24    clusterSecretName: cluster-secret
    25    logging: info
    26    resources:
    27      cpu: "1"
    28      memory: "1Gi"