Bitcoin nodes that enable JSON-RPC server are required to use basic authentication while calling JSON-RPC methods.
rpc-user-password.yaml
# WARNING: DON'T use the following secret in productionapiVersion:v1kind:Secretmetadata:name:kotal-rpc-user-passwordstringData:password:s3cr3t
Apply rpc-user-password.yaml to create the password secret:
kubectlapply-frpc-user-password.yaml
Deploy Bitcoin RPC Node
The following manifest describes a Bitcoin node that syncs Bitcoin mainnet network: mainnet, enables HTTP JSON-RPC server rpc: true, defines JSON-RPC user credentials rpcUsers: ... and uses Bitcoin Core client: