From 9907d1c6bd6ff84ff8ba7c30ddf42450fecde137 Mon Sep 17 00:00:00 2001 From: Denis Policastro Date: Mon, 26 Aug 2024 14:44:29 -0300 Subject: [PATCH 1/3] feat: add aztec-prover node and agent chart --- charts/aztec-prover/.helmignore | 23 +++ charts/aztec-prover/Chart.yaml | 18 ++ charts/aztec-prover/README.md | 81 ++++++++ charts/aztec-prover/templates/_helpers.tpl | 70 +++++++ charts/aztec-prover/templates/configmap.yaml | 11 + .../templates/extra-manifests.yaml | 8 + charts/aztec-prover/templates/hpa.yaml | 32 +++ charts/aztec-prover/templates/ingress.yaml | 61 ++++++ charts/aztec-prover/templates/service.yaml | 15 ++ .../templates/serviceaccount.yaml | 13 ++ .../aztec-prover/templates/statefulset.yaml | 103 ++++++++++ charts/aztec-prover/templates/validate.yaml | 3 + charts/aztec-prover/values.yaml | 191 ++++++++++++++++++ 13 files changed, 629 insertions(+) create mode 100644 charts/aztec-prover/.helmignore create mode 100644 charts/aztec-prover/Chart.yaml create mode 100644 charts/aztec-prover/README.md create mode 100644 charts/aztec-prover/templates/_helpers.tpl create mode 100644 charts/aztec-prover/templates/configmap.yaml create mode 100644 charts/aztec-prover/templates/extra-manifests.yaml create mode 100644 charts/aztec-prover/templates/hpa.yaml create mode 100644 charts/aztec-prover/templates/ingress.yaml create mode 100644 charts/aztec-prover/templates/service.yaml create mode 100644 charts/aztec-prover/templates/serviceaccount.yaml create mode 100644 charts/aztec-prover/templates/statefulset.yaml create mode 100644 charts/aztec-prover/templates/validate.yaml create mode 100644 charts/aztec-prover/values.yaml diff --git a/charts/aztec-prover/.helmignore b/charts/aztec-prover/.helmignore new file mode 100644 index 000000000..0e8a0eb36 --- /dev/null +++ b/charts/aztec-prover/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/aztec-prover/Chart.yaml b/charts/aztec-prover/Chart.yaml new file mode 100644 index 000000000..6a1a01b07 --- /dev/null +++ b/charts/aztec-prover/Chart.yaml @@ -0,0 +1,18 @@ +apiVersion: v2 +name: aztec-prover +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 diff --git a/charts/aztec-prover/README.md b/charts/aztec-prover/README.md new file mode 100644 index 000000000..5d141a265 --- /dev/null +++ b/charts/aztec-prover/README.md @@ -0,0 +1,81 @@ +# aztec-prover + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) + +A Helm chart for Kubernetes + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| autoscaling.enabled | bool | `false` | | +| autoscaling.maxReplicas | int | `100` | | +| autoscaling.minReplicas | int | `1` | | +| autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| envFrom | list | `[]` | | +| extraObjects | list | `[]` | | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"aztecprotocol/aztec"` | | +| image.tag | string | `"provernet"` | | +| imagePullSecrets | list | `[]` | | +| ingress.annotations | object | `{}` | | +| ingress.className | string | `""` | | +| ingress.enabled | bool | `false` | | +| ingress.hosts[0].host | string | `"chart-example.local"` | | +| ingress.hosts[0].paths[0].path | string | `"/"` | | +| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | +| ingress.tls | list | `[]` | | +| livenessProbe.httpGet.path | string | `"/status"` | | +| livenessProbe.httpGet.port | string | `"http"` | | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| persistence.accessModes[0] | string | `"ReadWriteOnce"` | | +| persistence.enabled | bool | `false` | | +| persistence.mountPath | string | `"/data"` | | +| persistence.size | string | `"50Gi"` | | +| persistence.storageClass | string | `""` | | +| podAnnotations | object | `{}` | | +| podLabels | object | `{}` | | +| podSecurityContext | object | `{}` | | +| proverAgent.args[0] | string | `"start --prover"` | | +| proverAgent.enabled | bool | `false` | | +| proverAgent.env.AZTEC_NODE_URL | string | `"http://aztec-prover-node:8080"` | | +| proverAgent.env.IS_DEV_NET | string | `"true"` | | +| proverAgent.env.LOG_JSON | string | `"false"` | | +| proverAgent.env.LOG_LEVEL | string | `"debug"` | | +| proverAgent.env.OTEL_EXPORTER_OTLP_ENDPOINT | string | `""` | | +| proverAgent.env.PROVER_AGENTS | string | `"1"` | | +| proverAgent.env.PROVER_REAL_PROOFS | string | `"true"` | | +| proverAgent.name | string | `"agent"` | | +| proverNode.args[0] | string | `"start --prover-node --archiver"` | | +| proverNode.enabled | bool | `true` | | +| proverNode.env.AZTEC_PORT | string | `"8080"` | | +| proverNode.env.DATA_DIRECTORY | string | `"/data"` | | +| proverNode.env.ETHEREUM_HOST | string | `"https://provernet-mainnet-fork.aztec.network:8545/$APIKEY"` | | +| proverNode.env.IS_DEV_NET | string | `"true"` | | +| proverNode.env.L1_CHAIN_ID | string | `"677692"` | | +| proverNode.env.LOG_JSON | string | `"false"` | | +| proverNode.env.LOG_LEVEL | string | `"debug"` | | +| proverNode.env.OTEL_EXPORTER_OTLP_ENDPOINT | string | `""` | | +| proverNode.env.PROVER_REAL_PROOFS | string | `"true"` | | +| proverNode.env.TX_PROVIDER_NODE_URL | string | `"https://api.aztec.network/provernet/aztec-node-1/$APIKEY"` | | +| proverNode.name | string | `"node"` | | +| readinessProbe.httpGet.path | string | `"/status"` | | +| readinessProbe.httpGet.port | string | `"http"` | | +| replicaCount | int | `1` | | +| resources | object | `{}` | | +| securityContext | object | `{}` | | +| service.port | int | `8080` | | +| service.type | string | `"ClusterIP"` | | +| serviceAccount.annotations | object | `{}` | | +| serviceAccount.automount | bool | `true` | | +| serviceAccount.create | bool | `true` | | +| serviceAccount.name | string | `""` | | +| tolerations | list | `[]` | | +| volumeMounts | list | `[]` | | +| volumes | list | `[]` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/aztec-prover/templates/_helpers.tpl b/charts/aztec-prover/templates/_helpers.tpl new file mode 100644 index 000000000..8f8476288 --- /dev/null +++ b/charts/aztec-prover/templates/_helpers.tpl @@ -0,0 +1,70 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "aztec-prover.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "aztec-prover.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "aztec-prover.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "aztec-prover.labels" -}} +helm.sh/chart: {{ include "aztec-prover.chart" . }} +{{ include "aztec-prover.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "aztec-prover.selectorLabels" -}} +app.kubernetes.io/name: {{ include "aztec-prover.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "aztec-prover.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "aztec-prover.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{- define "aztec-prover.config" -}} +{{- if .Values.proverNode.enabled }} +{{- .Values.proverNode | toYaml }} +{{- else if .Values.proverAgent.enabled }} +{{- .Values.proverAgent | toYaml }} +{{- end }} +{{- end }} diff --git a/charts/aztec-prover/templates/configmap.yaml b/charts/aztec-prover/templates/configmap.yaml new file mode 100644 index 000000000..4be074382 --- /dev/null +++ b/charts/aztec-prover/templates/configmap.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "aztec-prover.fullname" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} +data: + {{- with include "aztec-prover.config" . | fromYaml }} + {{- .env | toYaml | nindent 2 }} + {{- end }} diff --git a/charts/aztec-prover/templates/extra-manifests.yaml b/charts/aztec-prover/templates/extra-manifests.yaml new file mode 100644 index 000000000..7b6942346 --- /dev/null +++ b/charts/aztec-prover/templates/extra-manifests.yaml @@ -0,0 +1,8 @@ +{{- range .Values.extraObjects }} +--- +{{- if kindIs "map" . }} +{{ tpl (toYaml .) $ }} +{{- else }} +{{ tpl . $ }} +{{- end }} +{{- end }} diff --git a/charts/aztec-prover/templates/hpa.yaml b/charts/aztec-prover/templates/hpa.yaml new file mode 100644 index 000000000..2e7448b7e --- /dev/null +++ b/charts/aztec-prover/templates/hpa.yaml @@ -0,0 +1,32 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "aztec-prover.fullname" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "aztec-prover.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/aztec-prover/templates/ingress.yaml b/charts/aztec-prover/templates/ingress.yaml new file mode 100644 index 000000000..df55ec720 --- /dev/null +++ b/charts/aztec-prover/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "aztec-prover.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/aztec-prover/templates/service.yaml b/charts/aztec-prover/templates/service.yaml new file mode 100644 index 000000000..7d2d43e22 --- /dev/null +++ b/charts/aztec-prover/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "aztec-prover.fullname" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "aztec-prover.selectorLabels" . | nindent 4 }} diff --git a/charts/aztec-prover/templates/serviceaccount.yaml b/charts/aztec-prover/templates/serviceaccount.yaml new file mode 100644 index 000000000..4d9dfffe1 --- /dev/null +++ b/charts/aztec-prover/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "aztec-prover.serviceAccountName" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }} diff --git a/charts/aztec-prover/templates/statefulset.yaml b/charts/aztec-prover/templates/statefulset.yaml new file mode 100644 index 000000000..beae75fdb --- /dev/null +++ b/charts/aztec-prover/templates/statefulset.yaml @@ -0,0 +1,103 @@ +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: {{ include "aztec-prover.fullname" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 4 }} +spec: + serviceName: {{ include "aztec-prover.fullname" . }} + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "aztec-prover.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "aztec-prover.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "aztec-prover.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- with .Values.command }} + command: {{- . | toYaml | nindent 12 }} + {{- end }} + {{- with include "aztec-prover.config" . | fromYaml }} + args: {{- .args | toYaml | nindent 12 }} + {{- end }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + livenessProbe: + {{- toYaml .Values.livenessProbe | nindent 12 }} + readinessProbe: + {{- toYaml .Values.readinessProbe | nindent 12 }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + envFrom: + - configMapRef: + name: {{ include "aztec-prover.fullname" . }} + {{- with .Values.envFrom }} + {{- tpl (toYaml .) $ | nindent 12 }} + {{- end }} + {{- if or .Values.persistence.enabled .Values.volumeMounts }} + volumeMounts: + {{- if .Values.persistence.enabled }} + - name: {{ include "aztec-prover.fullname" . }} + mountPath: {{ .Values.persistence.mountPath }} + {{- end }} + {{- with .Values.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- if .Values.persistence.enabled }} + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: {{ include "aztec-prover.fullname" . }} + labels: + {{- include "aztec-prover.labels" . | nindent 10 }} + spec: + storageClassName: {{ .Values.persistence.storageClassName | quote }} + accessModes: {{- .Values.persistence.accessModes | toYaml | nindent 10 }} + resources: + requests: + storage: {{ .Values.persistence.size }} + {{- end }} diff --git a/charts/aztec-prover/templates/validate.yaml b/charts/aztec-prover/templates/validate.yaml new file mode 100644 index 000000000..a4a42b222 --- /dev/null +++ b/charts/aztec-prover/templates/validate.yaml @@ -0,0 +1,3 @@ +{{- if and .Values.proverNode.enabled .Values.proverAgent.enabled }} +{{- fail "Only one of 'proverNode.enabled' or 'proverAgent.enabled' can be true" }} +{{- end }} diff --git a/charts/aztec-prover/values.yaml b/charts/aztec-prover/values.yaml new file mode 100644 index 000000000..e7e6e9d94 --- /dev/null +++ b/charts/aztec-prover/values.yaml @@ -0,0 +1,191 @@ +# Default values for aztec-prover. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: aztecprotocol/aztec + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "provernet" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +proverNode: + enabled: true + name: node + args: + - "start --prover-node --archiver" + env: + # URL to an Ethereum node. + ETHEREUM_HOST: "https://provernet-mainnet-fork.aztec.network:8545/$APIKEY" + # Chain ID for the L1 Ethereum chain. + L1_CHAIN_ID: "677692" + # Local folder where archive and world state data is stored. + DATA_DIRECTORY: "/data" + # Port where the JSON-RPC APIs will be served. + AZTEC_PORT: "8080" + # URL to an Aztec node that acts as transaction provider and as source of truth for the L1 contract addresses. + TX_PROVIDER_NODE_URL: "https://api.aztec.network/provernet/aztec-node-1/$APIKEY" + # Private key used for publishing proofs to L1. Ensure it corresponds to an address with ETH to pay for gas. + # PROVER_PUBLISHER_PRIVATE_KEY: "" + #################### + # Common Envs + #################### + # Whether to generate actual proofs, as opposed to only simulating the circuit and outputting fake proofs. Set to true for the scope of the integration. + PROVER_REAL_PROOFS: "true" + # Whether to skip consensus checks. Set to true for the scope of the integration. + IS_DEV_NET: "true" + # One of debug, verbose, info, warn, or error. + LOG_LEVEL: "debug" + # Set to true to output logs in ndJSON format (unreleased). + LOG_JSON: "false" + # Optional URL for pushing telemetry data to a remote OpenTelemetry data collector. + OTEL_EXPORTER_OTLP_ENDPOINT: "" + +proverAgent: + enabled: false + name: agent + args: + - "start --prover" + env: + # URL to the prover node that acts as a proving job source. + AZTEC_NODE_URL: "http://aztec-prover-node:8080" + # Maximum concurrency for this given prover agent. Defaults to 1. + PROVER_AGENTS: "1" + #################### + # Common Envs + #################### + # Whether to generate actual proofs, as opposed to only simulating the circuit and outputting fake proofs. Set to true for the scope of the integration. + PROVER_REAL_PROOFS: "true" + # Whether to skip consensus checks. Set to true for the scope of the integration. + IS_DEV_NET: "true" + # One of debug, verbose, info, warn, or error. + LOG_LEVEL: "debug" + # Set to true to output logs in ndJSON format (unreleased). + LOG_JSON: "false" + # Optional URL for pushing telemetry data to a remote OpenTelemetry data collector. + OTEL_EXPORTER_OTLP_ENDPOINT: "" + +extraObjects: + [] + # - apiVersion: v1 + # kind: Secret + # metadata: + # name: '{{ include "aztec-prover.fullname" . }}' + # spec: + # stringData: + # PROVER_PUBLISHER_PRIVATE_KEY: "0x1234567890abcdef" + +envFrom: + [] + # - secretRef: + # name: '{{ include "aztec-prover.fullname" . }}' + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Automatically mount a ServiceAccount's API credentials? + automount: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} +podLabels: {} + +podSecurityContext: + {} + # fsGroup: 2000 + +securityContext: + {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 8080 + +ingress: + enabled: false + className: "" + annotations: + {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: + {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +livenessProbe: + httpGet: + path: /status + port: http +readinessProbe: + httpGet: + path: /status + port: http + +persistence: + enabled: true + size: 50Gi + storageClass: "" + mountPath: "/data" + accessModes: + - "ReadWriteOnce" + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +# Additional volumes on the output Deployment definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# Additional volumeMounts on the output Deployment definition. +volumeMounts: + [] + # - name: foo + # mountPath: "/etc/foo" + # readOnly: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} From 654528f07e30944c2e74ed7aeb8ab89dfa81ed13 Mon Sep 17 00:00:00 2001 From: Denis Policastro Date: Mon, 26 Aug 2024 23:07:11 -0300 Subject: [PATCH 2/3] feat: add maintainers --- charts/aztec-prover/Chart.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/aztec-prover/Chart.yaml b/charts/aztec-prover/Chart.yaml index 6a1a01b07..0715706ab 100644 --- a/charts/aztec-prover/Chart.yaml +++ b/charts/aztec-prover/Chart.yaml @@ -16,3 +16,5 @@ type: application # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) version: 0.1.0 +maintainers: + - name: 0xDones From 693eab6ba916d6c630aa7a6abe028b163e0970fc Mon Sep 17 00:00:00 2001 From: Denis Policastro Date: Mon, 26 Aug 2024 23:07:42 -0300 Subject: [PATCH 3/3] feat: add CODEOWNERS --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 728ddc511..6b8c28109 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -12,6 +12,7 @@ /.github/workflows/ @NethermindEth/angkor-validator-operators @AntiD2ta @aivarasko @matilote +/charts/aztec-prover/ @0xDones /charts/cert-manager/ @gehlotanish @Manjeet-Nethermind /charts/common/ @aivarasko @matilote /charts/dirk/ @aivarasko @matilote