attu-k8s-deploy.yaml 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: networking.k8s.io/v1
  18. kind: Ingress
  19. metadata:
  20. name: my-attu-ingress
  21. spec:
  22. rules:
  23. - host: my-attu.local
  24. http:
  25. paths:
  26. - path: /
  27. pathType: Prefix
  28. backend:
  29. service:
  30. name: my-attu-svc
  31. port:
  32. number: 3000
  33. ---
  34. apiVersion: apps/v1
  35. kind: Deployment
  36. metadata:
  37. name: my-attu
  38. labels:
  39. app: attu
  40. spec:
  41. replicas: 1
  42. selector:
  43. matchLabels:
  44. app: attu
  45. template:
  46. metadata:
  47. labels:
  48. app: attu
  49. spec:
  50. containers:
  51. - name: attu
  52. image: zilliz/attu:latest
  53. imagePullPolicy: Always
  54. ports:
  55. - name: attu
  56. containerPort: 3000
  57. protocol: TCP
  58. env:
  59. - name: HOST_URL
  60. value: http://my-attu.local