budget-app.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apiVersion: v1
  2. kind: List
  3. metadata: {}
  4. items:
  5. - apiVersion: apps/v1
  6. kind: Deployment
  7. metadata:
  8. labels:
  9. app: budget-app
  10. name: budget-app
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. app: budget-app
  16. template:
  17. metadata:
  18. labels:
  19. app: budget-app
  20. spec:
  21. containers:
  22. - image: registry.ocp4.example.com:8443/redhattraining/loadtest:v1.0
  23. name: budget-app
  24. readinessProbe:
  25. failureThreshold: 3
  26. httpGet:
  27. path: /api/loadtest/v1/healthz
  28. port: 8080
  29. scheme: HTTP
  30. periodSeconds: 10
  31. successThreshold: 1
  32. timeoutSeconds: 1
  33. resources:
  34. requests:
  35. cpu: 100m
  36. limits:
  37. cpu: 500m
  38. - apiVersion: v1
  39. kind: Service
  40. metadata:
  41. labels:
  42. app: budget-app
  43. name: budget-app
  44. spec:
  45. ports:
  46. - port: 8080
  47. protocol: TCP
  48. targetPort: 8080
  49. selector:
  50. app: budget-app
  51. - apiVersion: route.openshift.io/v1
  52. kind: Route
  53. metadata:
  54. labels:
  55. app: budget-app
  56. name: budget-app
  57. spec:
  58. host: budget.apps.ocp4.example.com
  59. port:
  60. targetPort: 8080
  61. to:
  62. kind: Service
  63. name: budget-app