Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Terraform & Helm #15066

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion terraform/helm/aptos-node/templates/fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ metadata:
name: {{ include "aptos-validator.fullname" $ }}-{{$i}}-{{ .name }}
labels:
{{- include "aptos-validator.labels" $ | nindent 4 }}
{{- include "aptos-validator.multiclusterLabels" (tuple $ $i) | nindent 4 }}
{{- include "aptos-validator.multiclusterLabels" (tuple $ $i) | nindent 4 }}
annotations:
{{- with $.Values.service.fullnode.internal.annotations }}
{{- toYaml $.Values.service.fullnode.internal.annotations | nindent 4 }}
{{- end }}
{{- if $.Values.service.internalDomain }}
external-dns.alpha.kubernetes.io/hostname: vfn{{$i}}.{{ $.Values.service.internalDomain }}
{{- end }}
spec:
selector:
{{- include "aptos-validator.selectorLabels" $ | nindent 4 }}
Expand Down
9 changes: 8 additions & 1 deletion terraform/helm/aptos-node/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
labels:
{{- include "aptos-validator.labels" $ | nindent 4 }}
{{- include "aptos-validator.multiclusterLabels" (tuple $ $i) | nindent 4 }}
annotations:
{{- with $.Values.service.validator.internal.annotations }}
{{- toYaml $.Values.service.validator.internal.annotations | nindent 4 }}
{{- end }}
{{- if $.Values.service.internalDomain }}
external-dns.alpha.kubernetes.io/hostname: val{{$i}}.{{ $.Values.service.internalDomain }}
{{- end }}
spec:
selector:
{{- include "aptos-validator.selectorLabels" $ | nindent 4 }}
Expand Down Expand Up @@ -184,7 +191,7 @@ spec:
- ALL
{{- end }}
{{- with $.Values.validator }}
{{- with $.nodeSelector }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions terraform/helm/aptos-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ fullnode:
service:
# -- If set, the base domain name to use for External DNS
domain:
# -- If set, the base domain name to use for internal LBs
internalDomain:
validator:
external:
# -- The Kubernetes ServiceType to use for validator's HAProxy
Expand All @@ -143,6 +145,7 @@ service:
# -- The Kubernetes ServiceType to use for validator
type: ClusterIP
headless: false
annotations: {}
# -- The externalTrafficPolicy for the validator service
externalTrafficPolicy: Local
# -- If set and if the ServiceType is LoadBalancer, allow traffic to validators from these CIDRs
Expand All @@ -161,6 +164,7 @@ service:
# -- The Kubernetes ServiceType to use for fullnodes
type: ClusterIP
headless: false
annotations: {}
# -- The externalTrafficPolicy for the fullnode service
externalTrafficPolicy: Local
# -- If set and if the ServiceType is LoadBalancer, allow traffic to fullnodes from these CIDRs
Expand Down
4 changes: 4 additions & 0 deletions terraform/helm/fullnode/templates/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ spec:
- "{{ int .config.state_snapshot_interval_epochs }}"
- "--transaction-batch-size"
- "{{ int .config.transaction_batch_size }}"
{{- if .config.concurrent_data_requests }}
- "--concurrent-data-requests"
- "{{ int .config.concurrent_data_requests }}"
{{- end }}
- "--command-adapter-config"
- "/opt/aptos/etc/{{ .config.location }}.yaml"
env:
Expand Down
6 changes: 4 additions & 2 deletions terraform/helm/fullnode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,18 @@ backup:
state_snapshot_interval_epochs: 2
# -- Transaction batch size
transaction_batch_size: 1000000
# -- Number of concurrent requests to the PFN backup port
concurrent_data_requests:

backup_verify:
# -- The schedule for backup verification
schedule: "@daily"
resources:
limits:
cpu: 8
memory: 32Gi
memory: 16Gi
requests:
cpu: 4
cpu: 8
memory: 16Gi
nodeSelector: {}
tolerations: []
Expand Down
Loading