Skip to content
Open
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
4 changes: 2 additions & 2 deletions 9c-internal/network/heimdall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gateway:
- heimdall-preview-market.9c.gg

bridgeService:
enabled: true
enabled: false

multiplanetary:
registryEndpoint: "https://9c-dx.s3.ap-northeast-2.amazonaws.com/planets-internal.json"
Expand Down Expand Up @@ -85,7 +85,7 @@ bridgeService:
channel: "9c-relay-bridge-bot-test-rdb"

db:
enabled: true
enabled: false
size: "10Gi"

rdb:
Expand Down
11 changes: 6 additions & 5 deletions 9c-internal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ certManager:
- "*.petpop.fun"
issuer:
email: [email protected]
traefik:
trustedIPs:
- 10.0.0.0/8
- 172.16.0.0/12
- 49.247.0.0/16
- 115.68.0.0/16
grafana:
hosts:
- monitoring-internal.planetarium.network
prometheus:
server:
extraScrapeConfigs:
- job_name: scrape-headlesses
metrics_path: /metrics
scrape_interval: 8s
scrape_timeout: 6s
static_configs:
7 changes: 7 additions & 0 deletions 9c-main/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ certManager:
traefik:
service:
loadBalancerIP: 115.68.199.177
trustedIPs:
- 10.0.0.0/8
- 172.16.0.0/12
- 49.247.0.0/16
- 115.68.0.0/16
fluentBit:
enabled: true
loki:
enabled: true
bucketName: 9c-loki
Expand Down
14 changes: 6 additions & 8 deletions common/bootstrap-v2/templates/datadog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
project: infra
syncPolicy:
syncOptions:
- CreateNamespace=true
destination:
server: https://kubernetes.default.svc
namespace: datadog
source:
repoURL: https://helm.datadoghq.com
chart: datadog
Expand Down Expand Up @@ -67,14 +73,6 @@ spec:
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}

destination:
server: https://kubernetes.default.svc
namespace: datadog
syncPolicy:
automated:
prune: true
selfHeal: true
---
apiVersion: "external-secrets.io/v1beta1"
kind: SecretStore
Expand Down
26 changes: 23 additions & 3 deletions common/bootstrap-v2/templates/fluent-bit/configmap-fluent-bit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

{{- if .Values.fluentBit.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -54,17 +54,21 @@ data:
Match application.*
Rule $kubernetes['container_name'] ^.*$ s3.$kubernetes['namespace_name'].$kubernetes['container_name'].$TAG true
Emitter_Name for_s3
{{- if eq .Values.provider "AWS" }}
[OUTPUT]
Name s3
Match s3.*
{{- if eq .Values.provider "AWS" }}
region ${AWS_REGION}
Bucket fluent-bit.planetariumhq.com
{{- else if eq .Values.provider "RKE2" }}
region auto
bucket 9c-fluentbit
endpoint ${R2_ENDPOINT}
{{- end }}
compression gzip
Total_file_size 100M
S3_key_format /${CLUSTER_NAME}/$TAG[1]/$TAG[2]/%Y/%m/%d/%H/$TAG-$UUID.gz
S3_key_format_tag_delimiters ._
{{- end }}

[INPUT]
Name tail
Expand Down Expand Up @@ -167,6 +171,21 @@ data:
Total_file_size 100M
S3_key_format /${CLUSTER_NAME}/json/$TAG[1]/$TAG[2]/%Y/%m/%d/%H/$TAG-$UUID.gz
S3_key_format_tag_delimiters ._
[OUTPUT]
Name s3
Match s3json.*
{{- if eq .Values.provider "AWS" }}
region ${AWS_REGION}
Bucket fluent-bit.planetariumhq.com
{{- else if eq .Values.provider "RKE2" }}
region auto
bucket 9c-fluentbit
endpoint ${R2_ENDPOINT}
{{- end }}
compression gzip
Total_file_size 100M
S3_key_format /${CLUSTER_NAME}/json/$TAG[1]/glue/$TAG[3]/%Y/%m/%d/%H/$TAG-$UUID.gz
S3_key_format_tag_delimiters ._

[INPUT]
Name tail
Expand Down Expand Up @@ -274,3 +293,4 @@ data:
Time_Key time_local
Time_Format %d/%b/%Y:%H:%M:%S %z
Decode_Field json request_body
{{- end }}
2 changes: 2 additions & 0 deletions common/bootstrap-v2/templates/fluent-bit/fluent-bit.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.fluentBit.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand Down Expand Up @@ -67,3 +68,4 @@ spec:
automated:
prune: true
selfHeal: true
{{- end }}
22 changes: 10 additions & 12 deletions common/bootstrap-v2/templates/loki.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ if .Values.loki.enabled }}
---
{{- if .Values.loki.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -9,6 +8,13 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
project: infra
syncPolicy:
automated:
prune: true
selfHeal: true
destination:
server: https://kubernetes.default.svc
namespace: monitoring
source:
repoURL: https://grafana.github.io/helm-charts
chart: loki
Expand All @@ -30,7 +36,7 @@ spec:
chunks: {{ $.Values.loki.bucketName }}
ruler: {{ $.Values.loki.bucketName }}
s3:
endpoint: "${R2_ENDPOINT}}"
endpoint: "${R2_ENDPOINT}"
region: "apac"
bucketnames: "{{ $.Values.loki.bucketName }}"
accessKeyId: "${R2_ACCESS_KEY_ID}"
Expand Down Expand Up @@ -160,12 +166,4 @@ spec:
enabled: false
grafanaAgent:
installOperator: false
destination:
server: https://kubernetes.default.svc
namespace: monitoring
# syncPolicy:
# automated:
# prune: true
# selfHeal: true
---
{{ end }}
{{- end }}
2 changes: 1 addition & 1 deletion common/bootstrap-v2/templates/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Namespace
metadata:
name: monitoring
---
{{- if eq .Values.provider "RKE2" }}
{{- if and (eq .Values.provider "RKE2") (or .Values.fluentBit.enabled .Values.loki.enabled) }}
apiVersion: external-secrets.io/v1beta1
kind: SecretStore
metadata:
Expand Down
2 changes: 1 addition & 1 deletion common/bootstrap-v2/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
repoURL: https://prometheus-community.github.io/helm-charts
chart: prometheus
targetRevision: 27.3.0
targetRevision: 27.6.0
helm:
values: |-
serviceAccounts:
Expand Down
2 changes: 2 additions & 0 deletions common/bootstrap-v2/templates/r2-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if or .Values.fluentBit.enabled .Values.loki.enabled }}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
Expand All @@ -18,3 +19,4 @@ spec:
dataFrom:
- extract:
key: {{ .Values.clusterName }}{{- if eq .Values.provider "RKE2" }}-rke2{{- end }}/r2-token
{{- end }}
6 changes: 5 additions & 1 deletion common/bootstrap-v2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ traefik:
annotations: {}
trustedIPs:
- 10.0.0.0/8
- 172.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
ports:
grpc:
kind: GRPCRoute
Expand Down Expand Up @@ -45,6 +46,9 @@ prometheus:
grafana:
serviceAnnotations:

fluentBit:
enabled: false

loki:
enabled: false
bucketName: ""
Expand Down