attu-k8s-deploy.yaml 715 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: my-attu-svc
  5. labels:
  6. app: attu
  7. spec:
  8. type: ClusterIP
  9. ports:
  10. - name: attu
  11. protocol: TCP
  12. port: 3000
  13. targetPort: 3000
  14. selector:
  15. app: attu
  16. ---
  17. apiVersion: apps/v1
  18. kind: Deployment
  19. metadata:
  20. name: my-attu
  21. labels:
  22. app: attu
  23. spec:
  24. replicas: 1
  25. selector:
  26. matchLabels:
  27. app: attu
  28. template:
  29. metadata:
  30. labels:
  31. app: attu
  32. spec:
  33. containers:
  34. - name: attu
  35. image: zilliz/attu:v2.5
  36. imagePullPolicy: IfNotPresent
  37. ports:
  38. - name: attu
  39. containerPort: 3000
  40. protocol: TCP
  41. env:
  42. - name: MILVUS_URL
  43. value: "my-release-milvus:19530"