Skip to content

Commit

Permalink
build(repo): adjust chart
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jan 11, 2025
1 parent cf9cad3 commit 96a0087
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 81 deletions.
7 changes: 1 addition & 6 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,13 @@ RESOURCES = {
'config_mode': ['minimal', 'full'],
'deps': ['fuel-streams-nats']
},
'consumer': {
'name': 'fuel-streams-sv-consumer',
'ports': ['8082:8082'],
'labels': 'consumer',
'config_mode': ['minimal', 'full']
},
'nats': {
'name': 'fuel-streams-nats',
'ports': ['4222:4222', '6222:6222', '7422:7422'],
'labels': 'nats',
'config_mode': ['minimal', 'full']
},

}

k8s_yaml(helm(
Expand Down
13 changes: 5 additions & 8 deletions cluster/charts/fuel-streams/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ dependencies:
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 1.2.8
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 1.2.8
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 1.2.8
digest: sha256:a5f3dd64e1a20f7c9d58894359f6f909f33d14772355ee70033fd411219bcc7e
generated: "2024-12-18T16:59:13.903435-03:00"
- name: cockroachdb
repository: https://charts.cockroachdb.com/
version: 15.0.3
digest: sha256:31915b4f840d27a1b3c42639e007e420b5fd4300b2038990746c9643e784a2c7
generated: "2025-01-10T23:33:35.594199-03:00"
7 changes: 1 addition & 6 deletions cluster/charts/fuel-streams/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ apiVersion: v2
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: fuel-streams
version: 0.8.8
version: 0.9.0
dependencies:
- name: nats
version: 1.2.8
repository: https://nats-io.github.io/k8s/helm/charts/
alias: nats
condition: nats.enabled
- name: cockroachdb
version: 15.0.3
repository: https://charts.cockroachdb.com/
alias: cockroachdb
condition: cockroachdb.enabled
7 changes: 4 additions & 3 deletions cluster/charts/fuel-streams/values-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ commonConfigMap:

# Reduce storage requirements for local development
publisher:
enabled: false
image:
repository: sv-publisher
pullPolicy: IfNotPresent
Expand All @@ -29,7 +30,7 @@ publisher:
memory: 512Mi

consumer:
enabled: true
enabled: false
image:
repository: sv-consumer
pullPolicy: IfNotPresent
Expand All @@ -46,7 +47,7 @@ consumer:
memory: 512Mi

webserver:
enabled: true
enabled: false
image:
repository: sv-webserver
pullPolicy: IfNotPresent
Expand All @@ -61,7 +62,7 @@ webserver:

# NATS Core configuration for local development
nats:
enabled: true
enabled: false
container:
env:
GOMEMLIMIT: 1GiB
Expand Down
58 changes: 0 additions & 58 deletions cluster/charts/fuel-streams/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,61 +370,3 @@ nats:
merge:
$tplYaml: |
{{- include "nats-accounts" . | nindent 8 }}
# ------------------------------------------------------------------------------
# Database configuration
# ------------------------------------------------------------------------------

cockroachdb:
enabled: true
image:
repository: cockroachdb/cockroach
tag: v24.3.2

conf:
cache: "2Gi"
max-sql-memory: "2Gi"

tls:
enabled: false

storage:
persistentVolume:
enabled: true
size: 100Gi
storageClass: "gp3-generic"

statefulset:
replicas: 3
resources:
requests:
cpu: "2"
memory: "4Gi"
limits:
cpu: "4"
memory: "8Gi"

service:
ports:
grpc:
external:
port: 26257
internal:
port: 26257
http:
port: 8080

prometheus:
enabled: false

init:
provisioning:
enabled: true
users:
- name: fuel_streams
password: fuel_streams_password # You should use a secret for this in production
options: [LOGIN]
databases:
- name: fuel_streams
owners: [fuel_streams]
options: [encoding='utf-8']

0 comments on commit 96a0087

Please sign in to comment.