Skip to content

Commit

Permalink
fix: larger cluster hostname suffix fixes cilium (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahg authored Aug 25, 2024
1 parent a8ed23a commit a09d768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ spec:
# add mongo egress
{{- if .Values.mongoConnectionString }}
- toFQDNs:
- matchPattern: "*.mongodb.net"
- matchPattern: "*.{{ .Values.mongoSuffix }}"
{{- else }}
- toEndpoints:
- matchLabels:
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiDomain: "api.tbltp.dev"
apiStorageClass: do-block-storage
apiStorageClassSize: 10Gi
mongoName: "mongo"
mongoSuffix: "lrmrxki.mongodb.net"
mongoImagePath: mongo
mongoImageVers: 7.0.0
mongoPort: 27017
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import mongoose from "mongoose";
import { WebSocketServer } from "ws";
import { ValueType, metrics } from "@opentelemetry/api";

// mongoose.set('debug', true); //
// mongoose.set('debug', true);

log.info(`System starting in ${process.env.NODE_ENV}`);

Expand Down

0 comments on commit a09d768

Please sign in to comment.