Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 00719-add-ability-to-…
Browse files Browse the repository at this point in the history
…inject-a-ca-cert-for-use-in-grpcs-and-grpc-web
  • Loading branch information
instamenta committed Nov 1, 2024
2 parents a896382 + ac15957 commit 0f837d2
Show file tree
Hide file tree
Showing 12 changed files with 372 additions and 98 deletions.
49 changes: 49 additions & 0 deletions resources/hedera-explorer-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
ingress:
enabled: false
hosts:
- host: "explorer.solo.local"
paths:
- path: /
pathType: Prefix
tls:
- secretName: ca-secret-hedera-explorer
hosts:
- '{{ index .Values.ingress.hosts 0 "host" }}'
labels:
solo.hedera.com/testSuiteName: ""
solo.hedera.com/testName: ""
solo.hedera.com/testRunUID: ""
solo.hedera.com/testCreationTimestamp: ""
solo.hedera.com/testExpirationTimestamp: ""
solo.hedera.com/testRequester: ""
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
#global:
# namespaceOverride: "{{ .Values.global.namespaceOverride }}"
# The hedera explorer UI /api url will proxy all request to mirror node
#
# Without this we would need to expose the mirror node rest API publicly and specify its public url in the network config below
proxyPass:
/api: "http://{{ .Release.Name }}-rest"

# In the json config below we are using the url as "/", instead of a regular http://mainnet.url
# This makes the explorer UI make a relative request to its own url
# This in combination with proxyPass above saves us the need to expose mirror node URL publicly
config: |
[
{
"name": "localnet",
"displayName": "LOCALNET",
"url": "/",
"ledgerID": "03"
}
]
175 changes: 175 additions & 0 deletions resources/mirror-node-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
labels:
solo.hedera.com/testSuiteName: ""
solo.hedera.com/testName: ""
solo.hedera.com/testRunUID: ""
solo.hedera.com/testCreationTimestamp: ""
solo.hedera.com/testExpirationTimestamp: ""
solo.hedera.com/testRequester: ""
graphql: # not needed for default use case
enabled: false
rosetta: # not needed for default use case
enabled: false
redis:
enabled: true
#global:
# namespaceOverride: "{{ tpl (.Values.global.namespaceOverride | toString) }}"

# importer is a component of the hedera mirror node
# config for subchart hedera-mirror/importer
importer:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
envFrom:
- secretRef:
name: mirror-passwords
- secretRef:
name: "{{ .Release.Name }}-redis"
- secretRef:
name: uploader-mirror-secrets
# The addressbook.bin file updates will be handled by infrastructure code or solo
addressBook: ""
config:
# importer is a springboot app, its application.yaml configuration starts here
# This config is mounted at [/usr/etc/hedera/application.yaml] in the importer pod
hedera:
mirror:
importer:
network: other
downloader:
allowAnonymousAccess: false
bucketName: "solo-streams"
# for s3 configuration of mirror node look at uploader-mirror-secrets.yaml
parser:
record:
entity:
notify:
enabled: true
redis:
enabled: false
sidecar:
enabled: true
management:
endpoint:
health:
group:
readiness:
exclude: redis
grpc:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
config:
hedera:
mirror:
grpc:
listener:
type: NOTIFY
management:
endpoint:
health:
group:
readiness:
exclude: redis
postgresql:
postgresql:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
pgpool:
replicaCount: 0
rest:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
monitor:
enabled: false
redis:
enabled: true
web3:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"

# config for subchart hedera-mirror/monitor
# Sets up a Pinger service that periodically submits CRYPTO_TRANSFER transactions
# Additional configuration for node addresses, operator id and key should be handled by infrastructure code or solo
monitor:
nodeSelector: {}
tolerations:
- key: "solo-scheduling.io/os"
operator: "Equal"
value: "linux"
effect: "NoSchedule"
- key: "solo-scheduling.io/role"
operator: "Equal"
value: "network"
effect: "NoSchedule"
envFrom:
- secretRef:
name: mirror-passwords
- secretRef:
name: "{{ .Release.Name }}-redis"
- secretRef:
name: uploader-mirror-secrets
config:
hedera:
mirror:
monitor:
publish:
scenarios:
pinger:
properties:
amount: 1
maxTransactionFee: 10000
senderAccountId: 0.0.2
recipientAccountId: 0.0.55
transferTypes:
- CRYPTO
receiptPercent: 1
tps: 10
type: CRYPTO_TRANSFER
subscribe:
grpc:
hcs:
enabled: false
rest:
transactionId:
enabled: true
samplePercent: 1
network: OTHER
15 changes: 13 additions & 2 deletions src/commands/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export const enableHederaExplorerTls: CommandFlag = {
constName: 'enableHederaExplorerTls',
name: 'enable-hedera-explorer-tls',
definition: {
describe: 'Enable the Hedera Explorer TLS, defaults to false',
describe: 'Enable the Hedera Explorer TLS, defaults to false, requires certManager and certManagerCrds, which can be deployed through solo-cluster-setup chart or standalone',
defaultValue: false,
type: 'boolean'
}
Expand Down Expand Up @@ -693,7 +693,17 @@ export const mirrorNodeVersion: CommandFlag = {
name: 'mirror-node-version',
definition: {
describe: 'Mirror node chart version',
defaultValue: '',
defaultValue: version.MIRROR_NODE_VERSION,
type: 'string'
}
}

export const hederaExplorerVersion: CommandFlag = {
constName: 'hederaExplorerVersion',
name: 'hedera-explorer-version',
definition: {
describe: 'Hedera explorer chart version',
defaultValue: version.HEDERA_EXPLORER_VERSION,
type: 'string'
}
}
Expand Down Expand Up @@ -815,6 +825,7 @@ export const allFlags: CommandFlag[] = [
updateAccountKeys,
valuesFile,
mirrorNodeVersion,
hederaExplorerVersion,
inputDir,
outputDir,
grpcTlsCertificatePath,
Expand Down
Loading

0 comments on commit 0f837d2

Please sign in to comment.