From 0d959e4c25096bdc1e3cbc0807792c32fb560387 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 17 Feb 2026 19:24:50 +0800 Subject: [PATCH] influxdb inress traefix --- influxdb/influxdb-ingress.yaml | 11 +++-------- influxdb/influxdb-service.yaml | 3 ++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/influxdb/influxdb-ingress.yaml b/influxdb/influxdb-ingress.yaml index 53c990c..cdeda6a 100644 --- a/influxdb/influxdb-ingress.yaml +++ b/influxdb/influxdb-ingress.yaml @@ -4,9 +4,9 @@ metadata: name: influxdb-ingress namespace: influxdb annotations: - nginx.ingress.kubernetes.io/rewrite-target: / - # 添加 SSL 终止支持的注释,如果需要 TLS/SSL 支持 - # nginx.ingress.kubernetes.io/ssl-redirect: "true" + traefik.ingress.kubernetes.io/router.entrypoints: web + traefik.ingress.kubernetes.io/router.pathmatcher: influxdb + traefik.ingress.kubernetes.io/service.passhostheader: "true" spec: ingressClassName: traefik rules: @@ -20,8 +20,3 @@ spec: name: influxdb port: number: 8086 - # 如果你希望启用 TLS/SSL,需要额外的配置 - # tls: - # - hosts: - # - influxdb.k8s.xunlang.home - # secretName: influxdb-tls-secret # 这是用于TLS的secret \ No newline at end of file diff --git a/influxdb/influxdb-service.yaml b/influxdb/influxdb-service.yaml index 675646c..864084e 100644 --- a/influxdb/influxdb-service.yaml +++ b/influxdb/influxdb-service.yaml @@ -10,4 +10,5 @@ spec: - name: http port: 8086 targetPort: 8086 - type: ClusterIP \ No newline at end of file + nodePort: 30086 + type: NodePort