瀏覽代碼

Added Example attu-K8s with ConfigMap

Further modularity.
Jay Clifford 1 年之前
父節點
當前提交
88963b82ef
共有 1 個文件被更改,包括 43 次插入0 次删除
  1. 43 0
      examples/attu-k8s-deploy.yaml

+ 43 - 0
examples/attu-k8s-deploy.yaml

@@ -0,0 +1,43 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: my-attu-svc
+  labels:
+    app: attu
+spec:
+  type: ClusterIP
+  ports:
+  - name: attu
+    protocol: TCP
+    port: 3000
+    targetPort: 3000
+  selector:
+    app: attu
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: my-attu
+  labels:
+    app: attu
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: attu
+  template:
+    metadata:
+      labels:
+        app: attu
+    spec:
+      containers:
+      - name: attu
+        image: zilliz/attu:v2.3.1
+        imagePullPolicy: IfNotPresent
+        ports:
+        - name: attu
+          containerPort: 3000
+          protocol: TCP
+        env:
+        - name: MILVUS_URL
+          value: "my-release-milvus:19530"