env:parity/polkadot:v0.9.22
network: polkadot
p2pPort: 30333
validator: false
syncMode: fast
pruning: true
retainedBlocks: 1024
logging: info
telemetry: false
telemetryURL: wss://telemetry.polkadot.io/submit/0
prometheus: true
prometheusPort: 9615
rpc: true
rpcPort: 9933
rpcMethods: unsafe
ws: true
wsPort: 9944
corsDomains:
- '*'
resources:
cpu: "4"
cpuLimit: "8"
memory: 4Gi
memoryLimit: 8Gi
storage: 80Gi
storageClass: gp2
execute code:
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "net_peerCount", "params":[]}' http://localhost:9933
error:
{"code":-32601,"message":"Method not found"}