update
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
30
k8s/kevisual.cn/apps/external/new-api.yaml
vendored
30
k8s/kevisual.cn/apps/external/new-api.yaml
vendored
@@ -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
|
||||
|
||||
43
k8s/kevisual.cn/apps/minio.yaml
Normal file
43
k8s/kevisual.cn/apps/minio.yaml
Normal 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
|
||||
10
k8s/xiongxiao.me/docs/11-mirror.md
Normal file
10
k8s/xiongxiao.me/docs/11-mirror.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user