deployment.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: podinfo
  5. spec:
  6. minReadySeconds: 3
  7. revisionHistoryLimit: 5
  8. progressDeadlineSeconds: 60
  9. strategy:
  10. rollingUpdate:
  11. maxUnavailable: 0
  12. type: RollingUpdate
  13. selector:
  14. matchLabels:
  15. app: podinfo
  16. template:
  17. metadata:
  18. annotations:
  19. prometheus.io/scrape: "true"
  20. prometheus.io/port: "9797"
  21. labels:
  22. app: podinfo
  23. spec:
  24. containers:
  25. - name: podinfod
  26. image: ghcr.io/stefanprodan/podinfo:6.3.6
  27. imagePullPolicy: IfNotPresent
  28. ports:
  29. - name: http
  30. containerPort: 9898
  31. protocol: TCP
  32. - name: http-metrics
  33. containerPort: 9797
  34. protocol: TCP
  35. - name: grpc
  36. containerPort: 9999
  37. protocol: TCP
  38. command:
  39. - ./podinfo
  40. - --port=9898
  41. - --port-metrics=9797
  42. - --grpc-port=9999
  43. - --grpc-service-name=podinfo
  44. - --level=info
  45. - --random-delay=false
  46. - --random-error=false
  47. env:
  48. - name: PODINFO_UI_COLOR
  49. value: "#34577c"
  50. livenessProbe:
  51. exec:
  52. command:
  53. - podcli
  54. - check
  55. - http
  56. - localhost:9898/healthz
  57. initialDelaySeconds: 5
  58. timeoutSeconds: 5
  59. readinessProbe:
  60. exec:
  61. command:
  62. - podcli
  63. - check
  64. - http
  65. - localhost:9898/readyz
  66. initialDelaySeconds: 5
  67. timeoutSeconds: 5
  68. resources:
  69. limits:
  70. cpu: 2000m
  71. memory: 512Mi
  72. requests:
  73. cpu: 100m
  74. memory: 64Mi