chore: Traefik | move values.yaml into construct directory

This commit is contained in:
2025-11-22 13:03:17 +05:00
parent 10d83ddc04
commit dc349f1d84
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import * as fs from "fs";
import * as path from "path";
import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
@@ -19,7 +20,7 @@ export class Traefik extends Construct {
chart: "traefik",
createNamespace: true,
values: [
fs.readFileSync("helm/values/traefik.values.yaml", {
fs.readFileSync(path.join(__dirname, "values.yaml"), {
encoding: "utf8",
}),
],

28
traefik/values.yaml Normal file
View File

@@ -0,0 +1,28 @@
ingress:
ingressClass:
enabled: true
isDefaultClass: false
name: traefik
deployment:
replicas: 3
podLabels:
app: traefik
nodeSelector:
nodepool: worker
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: "ScheduleAnyway"
labelSelector:
matchLabels:
app: traefik
additionalArguments:
- "--entryPoints.ssh.address=:22/tcp"
ports:
ssh:
name: ssh
port: 22
exposedPort: 22
expose:
default: true
protocol: TCP