Specifying a ChiaFarmer will create a kubernetes Deployment and some Services for a Chia farmer that 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 ChiaFarmer example custom resource (CR):
apiVersion: k8s.chia.net/v1
kind: ChiaFarmer
metadata:
name: my-farmer
spec:
chia:
caSecretName: chiaca-secret # A kubernetes Secret containing certificate authority files
fullNodePeer: "node.default.svc.cluster.local:8444" # A local full_node using kubernetes DNS names
# A kubernetes Secret named chiakey-secret containing a key.txt file with your mnemonic key
secretKey:
name: "chiakey-secret"
key: "key.txt"
The secretKey
field in the ChiaFarmer'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 ChiaFarmer resource in the way shown above.
This page contains documentation specific to this resource. Please see the rest of the documentation for information on more available configurations.