From 6ad93db6552e7cbad8033a66f7bab9587285897d Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 28 Nov 2025 00:38:25 +0800 Subject: [PATCH] update --- k8s/kevisual.cn/apps/esm.yaml | 24 +++++------- k8s/kevisual.cn/apps/external/new-api.yaml | 30 +++++++++------ k8s/kevisual.cn/apps/minio.yaml | 43 ++++++++++++++++++++++ k8s/xiongxiao.me/docs/11-mirror.md | 10 +++++ 4 files changed, 81 insertions(+), 26 deletions(-) create mode 100644 k8s/kevisual.cn/apps/minio.yaml create mode 100644 k8s/xiongxiao.me/docs/11-mirror.md diff --git a/k8s/kevisual.cn/apps/esm.yaml b/k8s/kevisual.cn/apps/esm.yaml index fb895ea..07cbc19 100644 --- a/k8s/kevisual.cn/apps/esm.yaml +++ b/k8s/kevisual.cn/apps/esm.yaml @@ -18,23 +18,19 @@ spec: spec: containers: - name: esm - image: ghcr.io/esm-dev/esm.sh:v136 + image: ghcr.io/esm-dev/esm.sh:v136_1 ports: - containerPort: 12000 protocol: TCP - env: - - name: LOG_LEVEL - value: "info" - - name: NPM_REGISTRY - value: "https://registry.npmmirror.com/" - - name: STORAGE_TYPE - value: "s3" - - name: STORAGE_S3_ENDPOINT - value: "http://kevisual.cn:9000" - - name: STORAGE_S3_ACCESS_KEY_ID - value: "abearxiong" - - name: STORAGE_S3_SECRET_ACCESS_KEY - value: "xiongxiao" + command: ["esmd", "--config", "/esmd/config.json"] + volumeMounts: + - name: esm-data + mountPath: /esmd + volumes: + - name: esm-data + hostPath: + path: /opt/docker/esm/data + type: Directory nodeSelector: machine: "kevisual" diff --git a/k8s/kevisual.cn/apps/external/new-api.yaml b/k8s/kevisual.cn/apps/external/new-api.yaml index bd993bf..17f17ea 100644 --- a/k8s/kevisual.cn/apps/external/new-api.yaml +++ b/k8s/kevisual.cn/apps/external/new-api.yaml @@ -11,22 +11,28 @@ spec: protocol: TCP name: http --- -apiVersion: discovery.k8s.io/v1 -kind: EndpointSlice +apiVersion: v1 +kind: Endpoints metadata: name: newapi-external namespace: default - labels: - kubernetes.io/service-name: newapi-external -addressType: IPv4 -ports: -- name: http - protocol: TCP - port: 3000 -endpoints: +subsets: - addresses: - - "118.196.32.29" - + - ip: "118.196.32.29" + ports: + - name: http + port: 3000 + protocol: TCP +metadata: + name: minio-external + namespace: default +subsets: +- addresses: + - ip: "118.196.32.29" + ports: + - name: http + port: 9000 + protocol: TCP --- # Kevisual - newapi.kevisual.cn (支持 WebSocket) apiVersion: traefik.io/v1alpha1 diff --git a/k8s/kevisual.cn/apps/minio.yaml b/k8s/kevisual.cn/apps/minio.yaml new file mode 100644 index 0000000..2ccd41d --- /dev/null +++ b/k8s/kevisual.cn/apps/minio.yaml @@ -0,0 +1,43 @@ +apiVersion: v1 +kind: Service +metadata: + name: minio-external + namespace: default +spec: + type: ClusterIP + ports: + - port: 9000 + targetPort: 9000 + protocol: TCP + name: http +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: minio-external + namespace: default +subsets: +- addresses: + - ip: "118.196.32.29" + ports: + - name: http + port: 9000 + protocol: TCP + +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: minio-https + namespace: default +spec: + entryPoints: + - websecure + routes: + - match: Host(`minio.kevisual.cn`) + kind: Rule + services: + - name: minio-external + port: 9000 + tls: + certResolver: letsencrypt \ No newline at end of file diff --git a/k8s/xiongxiao.me/docs/11-mirror.md b/k8s/xiongxiao.me/docs/11-mirror.md new file mode 100644 index 0000000..4ff7bfd --- /dev/null +++ b/k8s/xiongxiao.me/docs/11-mirror.md @@ -0,0 +1,10 @@ +```sh +# 查看本地镜像 +crictl images + +# 安装镜像 +crictl pull ghcr.io/esm-dev/esm.sh:v136 + + +crictl pull crpi-92z54xpbq1hzmdcz.cn-hangzhou.personal.cr.aliyuncs.com/kevisual/esm.sh:v136 +``` \ No newline at end of file