application.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. labels:
  6. app: expense
  7. app.kubernetes.io/component: expense
  8. app.kubernetes.io/instance: expense
  9. name: expense
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. deployment: expense
  15. strategy: {}
  16. template:
  17. metadata:
  18. labels:
  19. deployment: expense
  20. spec:
  21. containers:
  22. - image: quay.io/redhattraining/ocpdev-expense-service-health:4.14
  23. imagePullPolicy: Always
  24. name: expense
  25. ports:
  26. - containerPort: 8080
  27. protocol: TCP
  28. resources:
  29. requests:
  30. memory: "50Mi"
  31. limits:
  32. memory: "50Mi"
  33. ---
  34. apiVersion: v1
  35. kind: Service
  36. metadata:
  37. labels:
  38. app: expense
  39. app.kubernetes.io/component: expense
  40. app.kubernetes.io/instance: expense
  41. name: expense
  42. spec:
  43. ports:
  44. - name: 8080-tcp
  45. port: 8080
  46. protocol: TCP
  47. targetPort: 8080
  48. selector:
  49. deployment: expense
  50. ---
  51. apiVersion: route.openshift.io/v1
  52. kind: Route
  53. metadata:
  54. labels:
  55. app: expense
  56. app.kubernetes.io/component: expense
  57. app.kubernetes.io/instance: expense
  58. name: expense
  59. spec:
  60. host: expense-deployments-health.apps.ocp4.example.com
  61. port:
  62. targetPort: 8080-tcp
  63. to:
  64. kind: Service
  65. name: expense
  66. weight: 100