update
This commit is contained in:
@@ -18,23 +18,19 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: esm
|
- name: esm
|
||||||
image: ghcr.io/esm-dev/esm.sh:v136
|
image: ghcr.io/esm-dev/esm.sh:v136_1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 12000
|
- containerPort: 12000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
command: ["esmd", "--config", "/esmd/config.json"]
|
||||||
- name: LOG_LEVEL
|
volumeMounts:
|
||||||
value: "info"
|
- name: esm-data
|
||||||
- name: NPM_REGISTRY
|
mountPath: /esmd
|
||||||
value: "https://registry.npmmirror.com/"
|
volumes:
|
||||||
- name: STORAGE_TYPE
|
- name: esm-data
|
||||||
value: "s3"
|
hostPath:
|
||||||
- name: STORAGE_S3_ENDPOINT
|
path: /opt/docker/esm/data
|
||||||
value: "http://kevisual.cn:9000"
|
type: Directory
|
||||||
- name: STORAGE_S3_ACCESS_KEY_ID
|
|
||||||
value: "abearxiong"
|
|
||||||
- name: STORAGE_S3_SECRET_ACCESS_KEY
|
|
||||||
value: "xiongxiao"
|
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
machine: "kevisual"
|
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
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
---
|
---
|
||||||
apiVersion: discovery.k8s.io/v1
|
apiVersion: v1
|
||||||
kind: EndpointSlice
|
kind: Endpoints
|
||||||
metadata:
|
metadata:
|
||||||
name: newapi-external
|
name: newapi-external
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
subsets:
|
||||||
kubernetes.io/service-name: newapi-external
|
|
||||||
addressType: IPv4
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
protocol: TCP
|
|
||||||
port: 3000
|
|
||||||
endpoints:
|
|
||||||
- addresses:
|
- 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)
|
# Kevisual - newapi.kevisual.cn (支持 WebSocket)
|
||||||
apiVersion: traefik.io/v1alpha1
|
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