github.com/kotalco/kotal@v0.3.0/apis/polkadot/v1alpha1/defaults.go (about)

     1  package v1alpha1
     2  
     3  import "github.com/kotalco/kotal/apis/shared"
     4  
     5  const (
     6  	// DefaltReplicas is the default replicas
     7  	DefaltReplicas uint = 1
     8  	// DefaultSyncMode is the default blockchain sync mode
     9  	DefaultSyncMode = FullSynchronization
    10  	// DefaultLoggingVerbosity is the default node logging verbosity
    11  	DefaultLoggingVerbosity = shared.InfoLogs
    12  	// DefaultRetainedBlocks is the default node of blocks to retain if node isn't archive
    13  	DefaultRetainedBlocks uint = 256
    14  	// DefaultRPCPort is the default JSON-RPC server port
    15  	DefaultRPCPort uint = 9933
    16  	// DefaultP2PPort is the p2p protocol tcp port
    17  	DefaultP2PPort uint = 30333
    18  	// DefaultWSPort is the default websocket server port
    19  	DefaultWSPort uint = 9944
    20  	// DefaultTelemetryURL is the default telemetry service URL
    21  	DefaultTelemetryURL = "wss://telemetry.polkadot.io/submit/ 0"
    22  	// DefaultPrometheusPort is the default prometheus exporter port
    23  	DefaultPrometheusPort uint = 9615
    24  	// DefaultCORSDomain is the default browser origin allowed to access the JSON-RPC HTTP and WS servers
    25  	DefaultCORSDomain = "all"
    26  	// DefaultDatabaseBackend is the default database backend
    27  	DefaultDatabaseBackend DatabaseBackend = Auto
    28  )
    29  
    30  const (
    31  	// DefaultPolkadotImage is the default polkadot client image
    32  	DefaultPolkadotImage = "parity/polkadot:v1.10.0"
    33  )
    34  
    35  // Resources
    36  const (
    37  	// DefaultNodeCPURequest is the cpu requested by polkadot node
    38  	DefaultNodeCPURequest = "4"
    39  	// DefaultNodeCPULimit is the cpu limit for polkadot node
    40  	DefaultNodeCPULimit = "8"
    41  
    42  	// DefaultNodeMemoryRequest is the memory requested by polkadot node
    43  	DefaultNodeMemoryRequest = "4Gi"
    44  	// DefaultNodeMemoryLimit is the memory limit for polkadot node
    45  	DefaultNodeMemoryLimit = "8Gi"
    46  
    47  	// DefaultNodeStorageRequest is the Storage requested by polkadot node
    48  	DefaultNodeStorageRequest = "80Gi"
    49  )