metering-helm-operator-deployment.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: metering-helm-operator
  5. labels:
  6. app: metering-helm-operator
  7. spec:
  8. replicas: 1
  9. strategy:
  10. type: Recreate
  11. selector:
  12. matchLabels:
  13. app: metering-helm-operator
  14. template:
  15. metadata:
  16. labels:
  17. app: metering-helm-operator
  18. spec:
  19. securityContext:
  20. runAsNonRoot: true
  21. containers:
  22. - name: metering-helm-operator
  23. image: "quay.io/coreos/chargeback-helm-operator:0.6.1-latest"
  24. args: ["run-operator.sh"]
  25. imagePullPolicy: Always
  26. env:
  27. - name: HELM_RELEASE_CRD_NAME
  28. value: Metering
  29. - name: HELM_RELEASE_CRD_API_GROUP
  30. value: chargeback.coreos.com
  31. - name: HELM_CHART_PATH
  32. value: /openshift-metering-0.1.0.tgz
  33. - name: MY_POD_NAME
  34. valueFrom:
  35. fieldRef:
  36. fieldPath: metadata.name
  37. - name: MY_POD_NAMESPACE
  38. valueFrom:
  39. fieldRef:
  40. fieldPath: metadata.namespace
  41. - name: HELM_HOST
  42. value: "127.0.0.1:44134"
  43. - name: HELM_WAIT
  44. value: "false"
  45. - name: HELM_RECONCILE_INTERVAL_SECONDS
  46. value: "30"
  47. - name: RELEASE_HISTORY_LIMIT
  48. value: "3"
  49. resources:
  50. requests:
  51. memory: "25Mi"
  52. cpu: "50m"
  53. limits:
  54. memory: "25Mi"
  55. cpu: "50m"
  56. - name: tiller
  57. image: "quay.io/coreos/chargeback-helm-operator:0.6.1-latest"
  58. args: ["/tiller"]
  59. imagePullPolicy: Always
  60. env:
  61. - name: TILLER_NAMESPACE
  62. valueFrom:
  63. fieldRef:
  64. fieldPath: metadata.namespace
  65. - name: TILLER_HISTORY_MAX
  66. value: "3"
  67. resources:
  68. requests:
  69. memory: "50Mi"
  70. cpu: "50m"
  71. limits:
  72. memory: "100Mi"
  73. cpu: "50m"
  74. livenessProbe:
  75. failureThreshold: 3
  76. httpGet:
  77. path: /liveness
  78. port: 44135
  79. scheme: HTTP
  80. initialDelaySeconds: 1
  81. periodSeconds: 10
  82. successThreshold: 1
  83. timeoutSeconds: 1
  84. readinessProbe:
  85. failureThreshold: 3
  86. httpGet:
  87. path: /readiness
  88. port: 44135
  89. scheme: HTTP
  90. initialDelaySeconds: 1
  91. periodSeconds: 10
  92. successThreshold: 1
  93. timeoutSeconds: 1
  94. restartPolicy: Always
  95. terminationGracePeriodSeconds: 30
  96. serviceAccount: metering-helm-operator