virtmanager-deployment.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: virtmanager
  5. namespace: <NS>
  6. spec:
  7. type: NodePort
  8. ports:
  9. - name: "8000"
  10. port: 8000
  11. nodePort: 30046
  12. targetPort: 8000
  13. selector:
  14. app: virtmanager
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: virtmanager
  20. namespace: <NS>
  21. labels:
  22. app: virtmanager
  23. spec:
  24. replicas: 1
  25. selector:
  26. matchLabels:
  27. app: virtmanager
  28. strategy:
  29. type: Recreate
  30. template:
  31. metadata:
  32. labels:
  33. app: virtmanager
  34. spec:
  35. containers:
  36. - name: virtmanager
  37. image: registry.reymota.es/virtmanager:<TAG>
  38. env:
  39. - name: IMG_VERSION
  40. value: "<TAG>"
  41. - name: SSH_HOST
  42. valueFrom:
  43. configMapKeyRef:
  44. key: SSH_HOST
  45. name: env-prod
  46. - name: SSH_PORT
  47. valueFrom:
  48. configMapKeyRef:
  49. key: SSH_PORT
  50. name: env-prod
  51. envFrom:
  52. - secretRef:
  53. name: mi-secreto
  54. ports:
  55. - containerPort: 8000
  56. protocol: TCP
  57. imagePullSecrets:
  58. - name: myregistrykey
  59. restartPolicy: Always
  60. status: {}