This commit is contained in:
2025-12-24 19:40:53 +08:00
parent d188dab3ee
commit 853333d020
2 changed files with 45 additions and 0 deletions

3
k8s/copy.sh Normal file
View File

@@ -0,0 +1,3 @@
mkdir ~/.kube
cp ./config ~/.kube/config

View File

@@ -0,0 +1,42 @@
apiVersion: v1
kind: Service
metadata:
name: meilisearch-external
namespace: default
spec:
type: ClusterIP
ports:
- port: 7700
targetPort: 7700
protocol: TCP
name: http
---
apiVersion: v1
kind: Endpoints
metadata:
name: meilisearch-external
namespace: default
subsets:
- addresses:
- ip: "118.196.32.29"
ports:
- name: http
port: 7700
protocol: TCP
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: meilisearch-https
namespace: default
spec:
entryPoints:
- websecure
routes:
- match: Host(`ms.kevisual.cn`)
kind: Rule
services:
- name: meilisearch-external
port: 7700
tls:
certResolver: letsencrypt