This commit is contained in:
2025-11-28 00:38:25 +08:00
parent 417fcf897c
commit 6ad93db655
4 changed files with 81 additions and 26 deletions

View File

@@ -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"

View File

@@ -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
subsets:
- addresses:
- ip: "118.196.32.29"
ports:
- name: http
protocol: TCP
port: 3000
endpoints:
protocol: TCP
metadata:
name: minio-external
namespace: default
subsets:
- addresses:
- "118.196.32.29"
- ip: "118.196.32.29"
ports:
- name: http
port: 9000
protocol: TCP
---
# Kevisual - newapi.kevisual.cn (支持 WebSocket)
apiVersion: traefik.io/v1alpha1

View File

@@ -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

View File

@@ -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
```