From b88853df950bb869178611d336d9a5a8db19abfd Mon Sep 17 00:00:00 2001 From: abearxiong Date: Mon, 2 Mar 2026 19:38:55 +0800 Subject: [PATCH] test --- k8s/kevisual.cn/apps/esm/config.json | 13 +++++++++++++ k8s/kevisual.cn/traefik.yaml | 13 ++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 k8s/kevisual.cn/apps/esm/config.json diff --git a/k8s/kevisual.cn/apps/esm/config.json b/k8s/kevisual.cn/apps/esm/config.json new file mode 100644 index 0000000..11ca8af --- /dev/null +++ b/k8s/kevisual.cn/apps/esm/config.json @@ -0,0 +1,13 @@ +{ + "port": 12000, + "npmRegistry": "https://registry.npmmirror.com/", + "logLevel": "info", + "accessLog": true, + "storageS3": { + "type": "s3", + "endpoint": "https://tos-s3-cn-shanghai.ivolces.com", + "region": "cn-shanghai", + "accessKeyID": "AKLTOWNhNmJkNDJmNzFkNGI3MDlmMWQzYTA2ZjBkYTc2YTg", + "secretAccessKey": "TWpjME9EVm1OVFJtTkROaE5ESXlaR0ptWlRnd1lqVm1Nems0TW1Ka1pUZw==" + } +} \ No newline at end of file diff --git a/k8s/kevisual.cn/traefik.yaml b/k8s/kevisual.cn/traefik.yaml index c1c718c..790d0a0 100644 --- a/k8s/kevisual.cn/traefik.yaml +++ b/k8s/kevisual.cn/traefik.yaml @@ -137,6 +137,8 @@ spec: labels: app: traefik spec: + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet serviceAccountName: traefik nodeSelector: kubernetes.io/hostname: kevisual # 节点主机名是 kevisual @@ -164,10 +166,13 @@ spec: ports: - name: web containerPort: 80 + hostPort: 80 - name: websecure containerPort: 443 + hostPort: 443 - name: admin containerPort: 8080 + hostPort: 8080 volumeMounts: - name: acme-storage mountPath: /acme @@ -183,21 +188,23 @@ metadata: namespace: traefik spec: type: NodePort + externalIPs: + - 118.196.32.29 selector: app: traefik ports: - name: web port: 80 targetPort: 80 - nodePort: 30080 # 外部通过 30080 访问 HTTP + nodePort: 30080 - name: websecure port: 443 targetPort: 443 - nodePort: 30443 # 外部通过 30443 访问 HTTPS + nodePort: 30443 - name: admin port: 8080 targetPort: 8080 - nodePort: 30808 # Dashboard + nodePort: 30808 --- apiVersion: networking.k8s.io/v1 kind: IngressClass