Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 2.53 KB

chiawallet.md

File metadata and controls

75 lines (56 loc) · 2.53 KB

ChiaWallet

Specifying a ChiaWallet will create a kubernetes Deployment and some Services for a Chia wallet that optionally connects to a local full_node. It also requires a specified Chia certificate authority.

It is also expected you have a pre-existing Chia key to import, likely one that you generated locally in a Chia GUI installation.

Here's a minimal ChiaWallet example custom resource (CR):

apiVersion: k8s.chia.net/v1
kind: ChiaWallet
metadata:
  name: my-wallet
spec:
  chia:
    caSecretName: chiaca-secret # A kubernetes Secret containing certificate authority files
    # A kubernetes Secret named chiakey-secret containing a key.txt file with your mnemonic key
    secretKey:
      name: "chiakey-secret"
      key: "key.txt"

Secret key

The secretKey field in the ChiaWallet's spec defines the name of a Kubernetes Secret that contains your mnemonic. Only Wallets and Farmers need your mnemonic key to function. You can create your Kubernetes Secret like so:

apiVersion: v1
kind: Secret
metadata:
  name: chiakey-secret
stringData:
  key.txt: "your mnemonic goes here"
type: Opaque

Replace the text value for key.txt with your mnemonic, and then reference it in your ChiaWallet resource in the way shown above.

Full Node Peers

You may optionally specify a list of full_nodes for peer(s) to sync your wallet from.

spec:
  chia:
    # A local full_node using kubernetes DNS names
    fullNodePeers:
      - host: "node.default.svc.cluster.local"
        port: 8444

Trusted Peers

You can optionally specify a list of CIDRs that the wallet should trust full_node peers from. View the Chia documentation on trusted peers to understand whether you should use this feature or not.

Here's an example ChiaWallet that specifies trusted CIDRs:

spec:
  chia:
    trustedCIDRs:
      - "192.168.1.0/24"
      - "10.0.0/8"

This specifies two trusted CIDRs, where if the IP address of a full_node peer is discovered to be within one of these two CIDR ranges, chia will consider that a trusted peer.

More Info

This page contains documentation specific to this resource. Please see the rest of the documentation for information on more available configurations.