Skip to content

Commit e907078

Browse files
committed
add 'preview' testnet configs
1 parent 107d761 commit e907078

13 files changed

Lines changed: 351 additions & 4 deletions

charts/cardano/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Cardano Helm chart for Kubernetes
44

55
type: application
66

7-
version: 0.4.1
7+
version: 0.4.2
88

99
appVersion: 1.35.4
1010

charts/cardano/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cardano
22

3-
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.35.4](https://img.shields.io/badge/AppVersion-1.35.4-informational?style=flat-square)
3+
![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.35.4](https://img.shields.io/badge/AppVersion-1.35.4-informational?style=flat-square)
44

55
A Cardano Helm chart for Kubernetes
66

@@ -21,7 +21,7 @@ A Cardano Helm chart for Kubernetes
2121
| curl.pullPolicy | string | `"IfNotPresent"` | |
2222
| curl.repository | string | `"ghcr.io/regel/lz4"` | |
2323
| curl.tag | string | `"0.0.3"` | |
24-
| environment.name | string | `"testnet"` | name of the Cardano network to use. Either 'testnet' or 'mainnet' |
24+
| environment.name | string | `"testnet"` | name of the Cardano network to use. Either 'preview', 'testnet' or 'mainnet' |
2525
| fullnameOverride | string | `""` | |
2626
| global.storageClass | string | `nil` | Global StorageClass for Persistent Volume(s) |
2727
| image.pullPolicy | string | `"IfNotPresent"` | |
1.4 KB
Binary file not shown.
2.72 KB
Binary file not shown.
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
{{- if semverCompare ">=1.28.0" .Values.image.tag }}
3+
"AlonzoGenesisFile": "alonzo-genesis.json",
4+
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
5+
{{- end }}
6+
"ApplicationName": "cardano-sl",
7+
"ApplicationVersion": 0,
8+
"ByronGenesisFile": "byron-genesis.json",
9+
"ByronGenesisHash": "83de1d7302569ad56cf9139a41e2e11346d4cb4a31c00142557b6ab3fa550761",
10+
"EnableP2P": false,
11+
"LastKnownBlockVersion-Alt": 0,
12+
"LastKnownBlockVersion-Major": 3,
13+
"LastKnownBlockVersion-Minor": 1,
14+
"Protocol": "Cardano",
15+
"RequiresNetworkMagic": "RequiresMagic",
16+
"ShelleyGenesisFile": "shelley-genesis.json",
17+
"ShelleyGenesisHash": "363498d1024f84bb39d3fa9593ce391483cb40d479b87233f868d6e57c3a400d",
18+
"TargetNumberOfActivePeers": 20,
19+
"TargetNumberOfEstablishedPeers": 50,
20+
"TargetNumberOfKnownPeers": 100,
21+
"TargetNumberOfRootPeers": 100,
22+
"TestAllegraHardForkAtEpoch": 0,
23+
"TestAlonzoHardForkAtEpoch": 0,
24+
"TestEnableDevelopmentHardForkEras": true,
25+
"TestEnableDevelopmentNetworkProtocols": true,
26+
"TestMaryHardForkAtEpoch": 0,
27+
"TestShelleyHardForkAtEpoch": 0,
28+
"TraceAcceptPolicy": true,
29+
"TraceBlockFetchClient": false,
30+
"TraceBlockFetchDecisions": true,
31+
"TraceBlockFetchProtocol": false,
32+
"TraceBlockFetchProtocolSerialised": false,
33+
"TraceBlockFetchServer": false,
34+
"TraceChainDb": true,
35+
"TraceChainSyncBlockServer": false,
36+
"TraceChainSyncClient": false,
37+
"TraceChainSyncHeaderServer": false,
38+
"TraceChainSyncProtocol": false,
39+
"TraceConnectionManager": true,
40+
"TraceDNSResolver": true,
41+
"TraceDNSSubscription": true,
42+
"TraceDiffusionInitialization": true,
43+
"TraceErrorPolicy": true,
44+
"TraceForge": true,
45+
"TraceHandshake": false,
46+
"TraceInboundGovernor": true,
47+
"TraceIpSubscription": true,
48+
"TraceLedgerPeers": true,
49+
"TraceLocalChainSyncProtocol": false,
50+
"TraceLocalErrorPolicy": true,
51+
"TraceLocalHandshake": false,
52+
"TraceLocalRootPeers": true,
53+
"TraceLocalTxSubmissionProtocol": false,
54+
"TraceLocalTxSubmissionServer": false,
55+
"TraceMempool": true,
56+
"TraceMux": false,
57+
"TracePeerSelection": true,
58+
"TracePeerSelectionActions": true,
59+
"TracePublicRootPeers": true,
60+
"TraceServer": true,
61+
"TraceTxInbound": false,
62+
"TraceTxOutbound": false,
63+
"TraceTxSubmissionProtocol": false,
64+
"TracingVerbosity": "NormalVerbosity",
65+
"TurnOnLogMetrics": true,
66+
"TurnOnLogging": true,
67+
"defaultBackends": [
68+
"KatipBK"
69+
],
70+
"defaultScribes": [
71+
[
72+
"StdoutSK",
73+
"stdout"
74+
]
75+
],
76+
"hasEKG": 12788,
77+
"hasPrometheus": [
78+
"0.0.0.0",
79+
12789
80+
],
81+
"minSeverity": "Info",
82+
"options": {
83+
"mapBackends": {
84+
"cardano.node.metrics": [
85+
"EKGViewBK"
86+
],
87+
"cardano.node.resources": [
88+
"EKGViewBK"
89+
],
90+
"cardano.node.BlockFetchDecision.peers": [
91+
"EKGViewBK"
92+
],
93+
"cardano.node.ChainDB.metrics": [
94+
"EKGViewBK"
95+
],
96+
"cardano.node.Forge.metrics": [
97+
"EKGViewBK"
98+
]
99+
},
100+
"mapSubtrace": {
101+
"cardano.node.metrics": {
102+
"subtrace": "Neutral"
103+
}
104+
}
105+
},
106+
"rotation": {
107+
"rpKeepFilesNum": 10,
108+
"rpLogLimitBytes": 5000000,
109+
"rpMaxAgeHours": 24
110+
},
111+
"setupBackends": [
112+
"KatipBK"
113+
],
114+
"setupScribes": [
115+
{
116+
"scFormat": "ScText",
117+
"scKind": "StdoutSK",
118+
"scName": "stdout",
119+
"scRotation": null
120+
}
121+
]
122+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{{- $fullName := include "cardano.fullname" . }}
2+
{{- $namespace := .Release.Namespace }}
3+
{{- $replicaCount := .Values.relay.replicaCount | int }}
4+
5+
{{- $producers := list }}
6+
{{- if .Values.producer.enabled }}
7+
{{- range $index, $value := until $replicaCount }}
8+
{{- $addr := printf "%s-relay-%d.%s-headless.%s.svc.cluster.local" $fullName $index $fullName $namespace }}
9+
{{- $item := dict "addr" $addr "port" 3001 "valency" 1 }}
10+
{{- $producers = prepend $producers $item }}
11+
{{- end }}
12+
{{- end }}
13+
14+
{
15+
"Producers":
16+
{{- toPrettyJson $producers | indent 4 }},
17+
"LocalRoots": {
18+
"groups": [
19+
{
20+
"localRoots": {
21+
"accessPoints": [],
22+
"advertise": false
23+
},
24+
"valency": 1
25+
}
26+
]
27+
},
28+
"PublicRoots": [
29+
{
30+
"publicRoots": {
31+
"accessPoints": [],
32+
"advertise": false
33+
}
34+
}
35+
],
36+
"useLedgerAfterSlot": 322000
37+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
{{- if semverCompare ">=1.28.0" .Values.image.tag }}
3+
"AlonzoGenesisFile": "alonzo-genesis.json",
4+
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
5+
{{- end }}
6+
"ApplicationName": "cardano-sl",
7+
"ApplicationVersion": 0,
8+
"ByronGenesisFile": "byron-genesis.json",
9+
"ByronGenesisHash": "83de1d7302569ad56cf9139a41e2e11346d4cb4a31c00142557b6ab3fa550761",
10+
"EnableP2P": {{ .Values.p2p.enabled }},
11+
"LastKnownBlockVersion-Alt": 0,
12+
"LastKnownBlockVersion-Major": 3,
13+
"LastKnownBlockVersion-Minor": 1,
14+
"Protocol": "Cardano",
15+
"RequiresNetworkMagic": "RequiresMagic",
16+
"ShelleyGenesisFile": "shelley-genesis.json",
17+
"ShelleyGenesisHash": "363498d1024f84bb39d3fa9593ce391483cb40d479b87233f868d6e57c3a400d",
18+
"TargetNumberOfActivePeers": 20,
19+
"TargetNumberOfEstablishedPeers": 50,
20+
"TargetNumberOfKnownPeers": 100,
21+
"TargetNumberOfRootPeers": 100,
22+
"TestAllegraHardForkAtEpoch": 0,
23+
"TestAlonzoHardForkAtEpoch": 0,
24+
"TestEnableDevelopmentHardForkEras": true,
25+
"TestEnableDevelopmentNetworkProtocols": true,
26+
"TestMaryHardForkAtEpoch": 0,
27+
"TestShelleyHardForkAtEpoch": 0,
28+
"TraceAcceptPolicy": true,
29+
"TraceBlockFetchClient": false,
30+
"TraceBlockFetchDecisions": true,
31+
"TraceBlockFetchProtocol": false,
32+
"TraceBlockFetchProtocolSerialised": false,
33+
"TraceBlockFetchServer": false,
34+
"TraceChainDb": true,
35+
"TraceChainSyncBlockServer": false,
36+
"TraceChainSyncClient": false,
37+
"TraceChainSyncHeaderServer": false,
38+
"TraceChainSyncProtocol": false,
39+
"TraceConnectionManager": true,
40+
"TraceDNSResolver": true,
41+
"TraceDNSSubscription": true,
42+
"TraceDiffusionInitialization": true,
43+
"TraceErrorPolicy": true,
44+
"TraceForge": true,
45+
"TraceHandshake": false,
46+
"TraceInboundGovernor": true,
47+
"TraceIpSubscription": true,
48+
"TraceLedgerPeers": true,
49+
"TraceLocalChainSyncProtocol": false,
50+
"TraceLocalErrorPolicy": true,
51+
"TraceLocalHandshake": false,
52+
"TraceLocalRootPeers": true,
53+
"TraceLocalTxSubmissionProtocol": false,
54+
"TraceLocalTxSubmissionServer": false,
55+
"TraceMempool": true,
56+
"TraceMux": false,
57+
"TracePeerSelection": true,
58+
"TracePeerSelectionActions": true,
59+
"TracePublicRootPeers": true,
60+
"TraceServer": true,
61+
"TraceTxInbound": false,
62+
"TraceTxOutbound": false,
63+
"TraceTxSubmissionProtocol": false,
64+
"TracingVerbosity": "NormalVerbosity",
65+
"TurnOnLogMetrics": true,
66+
"TurnOnLogging": true,
67+
"defaultBackends": [
68+
"KatipBK"
69+
],
70+
"defaultScribes": [
71+
[
72+
"StdoutSK",
73+
"stdout"
74+
]
75+
],
76+
"hasEKG": 12788,
77+
"hasPrometheus": [
78+
"0.0.0.0",
79+
12789
80+
],
81+
"minSeverity": "Info",
82+
"options": {
83+
"mapBackends": {
84+
"cardano.node.metrics": [
85+
"EKGViewBK"
86+
],
87+
"cardano.node.resources": [
88+
"EKGViewBK"
89+
],
90+
"cardano.node.BlockFetchDecision.peers": [
91+
"EKGViewBK"
92+
],
93+
"cardano.node.ChainDB.metrics": [
94+
"EKGViewBK"
95+
],
96+
"cardano.node.Forge.metrics": [
97+
"EKGViewBK"
98+
]
99+
},
100+
"mapSubtrace": {
101+
"cardano.node.metrics": {
102+
"subtrace": "Neutral"
103+
}
104+
}
105+
},
106+
"rotation": {
107+
"rpKeepFilesNum": 10,
108+
"rpLogLimitBytes": 5000000,
109+
"rpMaxAgeHours": 24
110+
},
111+
"setupBackends": [
112+
"KatipBK"
113+
],
114+
"setupScribes": [
115+
{
116+
"scFormat": "ScText",
117+
"scKind": "StdoutSK",
118+
"scName": "stdout",
119+
"scRotation": null
120+
}
121+
]
122+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{{- $fullName := include "cardano.fullname" . }}
2+
{{- $namespace := .Release.Namespace }}
3+
{{- $replicaCount := .Values.producer.replicaCount | int }}
4+
5+
{{- $producers := list }}
6+
{{- if .Values.producer.enabled }}
7+
{{- range $index, $value := until $replicaCount }}
8+
{{- $addr := printf "%s-producer-%d.%s-headless.%s.svc.cluster.local" $fullName $index $fullName $namespace }}
9+
{{- $item := dict "addr" $addr "port" 3001 "valency" 1 }}
10+
{{- $producers = prepend $producers $item }}
11+
{{- end }}
12+
{{- end }}
13+
14+
{
15+
"Producers":
16+
{{- toPrettyJson $producers | indent 4 }},
17+
"LocalRoots": {
18+
"groups": [
19+
{
20+
"localRoots": {
21+
"accessPoints": [],
22+
"advertise": false
23+
},
24+
"valency": 1
25+
}
26+
]
27+
},
28+
"PublicRoots": [
29+
{
30+
"publicRoots": {
31+
"accessPoints": [
32+
{
33+
"address": "preview-node.world.dev.cardano.org",
34+
"port": 30002
35+
}
36+
],
37+
"advertise": false
38+
}
39+
}
40+
],
41+
"useLedgerAfterSlot": 322000
42+
}
1.28 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if eq .Values.environment.name "preview" }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ template "cardano.configName" . }}-preview
6+
data:
7+
{{ (tpl (.Files.Glob "files/readiness.sh").AsConfig . ) | indent 2 }}
8+
{{ (tpl (.Files.Glob "files/preview/producer-topology.json").AsConfig . ) | indent 2 }}
9+
{{ (tpl (.Files.Glob "files/preview/producer-config.json").AsConfig . ) | indent 2 }}
10+
{{ (tpl (.Files.Glob "files/preview/relay-topology.json").AsConfig . ) | indent 2 }}
11+
{{ (tpl (.Files.Glob "files/preview/relay-config.json").AsConfig . ) | indent 2 }}
12+
binaryData:
13+
{{- $root := . }}
14+
{{- $location := "files/preview/*.json.gz" }}
15+
{{- range $path, $bytes := .Files.Glob $location }}
16+
{{ base $path }}: {{ $root.Files.Get $path | b64enc | quote }}
17+
{{- end }}
18+
{{- end }}

0 commit comments

Comments
 (0)