-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Helm Chart for all zk_stack resources (#21)
* Add initial Helm chart with services * Add ingresses to helm chart * Add missing services, healthcheck and reuse port values * Disable rate limit and remove proxy from RPC URLs * Fix external-secrets version syntax * Add Cloudflare DNS01 issuer and use it * Use full price GPU nodes for instant availability * Change location of GPU nodes * [WIP] GPU Nodepool with 4 NVIDIA L4 GPUs * Upgrade kubernetes version * Change GPU location and name * Comment x4 GPUs nodes * Remove deletion protections
- Loading branch information
Showing
24 changed files
with
365 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
name: zk_stack | ||
description: A Helm chart that deploys all the components of the zk_stack | ||
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 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.16.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: cloud.google.com/v1 | ||
kind: BackendConfig | ||
metadata: | ||
name: health-check-config | ||
namespace: default | ||
spec: | ||
healthCheck: | ||
checkIntervalSec: {{ .Values.healthCheck.checkIntervalSec }} | ||
port: {{ .Values.healthCheck.port }} | ||
type: HTTP | ||
requestPath: /health |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- range $app, $values := .Values.ingresses }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ $app }}-ingress | ||
namespace: {{ $.Values.namespace }} | ||
annotations: | ||
kubernetes.io/ingress.global-static-ip-name: {{ $values.gcp_global_ip_name }} | ||
cert-manager.io/issuer: "dns01-cloudflare-issuer" | ||
acme.cert-manager.io/http01-edit-in-place: "true" | ||
networking.gke.io/v1beta1.FrontendConfig: "http-https-redirect" | ||
labels: | ||
app: {{ $app }} | ||
spec: | ||
rules: | ||
- host: {{ $values.dns }} | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: {{ $app }} | ||
port: | ||
number: {{ $values.port }} | ||
tls: | ||
- hosts: | ||
- {{ $values.dns }} | ||
secretName: {{ $app }}-ssl-cert | ||
--- | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- range $app, $values := .Values.services }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ $app }}-service | ||
namespace: {{ $.Values.namespace }} | ||
labels: | ||
app: {{ $app }} | ||
spec: | ||
type: {{ $values.type }} | ||
ports: | ||
{{- range $values.ports }} | ||
- name: {{ .name }} | ||
port: {{ .port }} | ||
targetPort: {{ .port }} | ||
protocol: TCP | ||
{{- end }} | ||
selector: | ||
app: {{ $app }} | ||
--- | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
# Default values for zk_stack. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
namespace: default | ||
explorer-app: | ||
http-port: &explorer-app-http-port 3010 | ||
explorer-api: | ||
http-port: &explorer-api-http-port 3020 | ||
explorer-data-fetcher: | ||
http-port: &explorer-data-fetcher-http-port 3040 | ||
explorer-data-fetcher: | ||
http-port: &explorer-data-fetcher-http-port 3040 | ||
external-node: | ||
http-port: &external-node-http-port 3050 | ||
portal: | ||
http-port: &portal-http-port 3000 | ||
server: | ||
http-port: &server-http-port 3050 | ||
grafana: | ||
http-port: &grafana-http-port 3000 | ||
healthCheck: | ||
port: &healthcheck-port 3071 | ||
checkIntervalSec: 15 | ||
services: | ||
explorer-app: | ||
type: NodePort | ||
ports: | ||
- name: http | ||
port: *explorer-app-http-port | ||
explorer-api: | ||
type: NodePort | ||
ports: | ||
- name: http | ||
port: *explorer-api-http-port | ||
explorer-data-fetcher: | ||
type: ClusterIP | ||
ports: | ||
- name: http | ||
port: *explorer-data-fetcher-http-port | ||
external-node: | ||
type: NodePort | ||
ports: | ||
- name: en-http | ||
port: *external-node-http-port | ||
- name: en-healthcheck | ||
port: *healthcheck-port | ||
- name: en-prometheu0 | ||
port: 3312 | ||
portal: | ||
type: NodePort | ||
ports: | ||
- name: http | ||
port: *portal-http-port | ||
server: | ||
type: NodePort | ||
ports: | ||
- name: server-rpc | ||
port: *server-http-port | ||
- name: server-proof-generation | ||
port: 3320 | ||
- name: server-readiness | ||
port: *healthcheck-port | ||
- name: server-prometheus-listener | ||
port: 3312 | ||
grafana: | ||
type: NodePort | ||
ports: | ||
- name: grafana | ||
port: *grafana-http-port | ||
prometheus: | ||
type: NodePort | ||
ports: | ||
- name: prometheus | ||
port: 9090 | ||
pushgateway: | ||
type: NodePort | ||
ports: | ||
- name: pushgateway | ||
port: 9091 | ||
nodeexporter: | ||
type: NodePort | ||
ports: | ||
- name: nodeexporter | ||
port: 9091 | ||
alertmanager: | ||
type: NodePort | ||
ports: | ||
- name: alertmanager | ||
port: 9093 | ||
en01-grafana: | ||
type: NodePort | ||
ports: | ||
- name: en01-grafana | ||
port: *grafana-http-port | ||
en01-prometheus: | ||
type: NodePort | ||
ports: | ||
- name: en01-prometheus | ||
port: 9090 | ||
en01-pushgateway: | ||
type: NodePort | ||
ports: | ||
- name: en01-pushgateway | ||
port: 9091 | ||
en01-nodeexporter: | ||
type: NodePort | ||
ports: | ||
- name: en01-nodeexporter | ||
port: 9100 | ||
ingresses: | ||
explorer-app: | ||
dns: k8s.explorer.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: explorer-app-ip | ||
port: *explorer-app-http-port | ||
explorer-api: | ||
dns: k8s.explorer.api.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: explorer-api-ip | ||
port: *explorer-api-http-port | ||
external-node: | ||
dns: k8s.en01.rpc.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: external-node-ip | ||
port: *external-node-http-port | ||
portal: | ||
dns: k8s.portal.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: portal-ip | ||
port: *portal-http-port | ||
server: | ||
dns: k8s.rpc.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: server-ip | ||
port: *server-http-port | ||
grafana: | ||
dns: k8s.grafana.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: grafana-ip | ||
port: *grafana-http-port | ||
en01-grafana: | ||
dns: k8s.en01.grafana.sepolia.zk-stack.lambdaclass.com | ||
gcp_global_ip_name: en01-grafana-ip | ||
port: *grafana-http-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.