deployment.yaml 941 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: cost-model
  5. labels:
  6. app: cost-model
  7. spec:
  8. replicas: 1
  9. strategy:
  10. rollingUpdate:
  11. maxSurge: 1
  12. maxUnavailable: 1
  13. type: RollingUpdate
  14. template:
  15. metadata:
  16. labels:
  17. app: cost-model
  18. spec:
  19. restartPolicy: Always
  20. serviceAccountName: cost-model
  21. containers:
  22. - image: ajaytripathy/kubecost-cost-model:latest
  23. name: cost-model
  24. resources:
  25. requests:
  26. cpu: "10m"
  27. memory: "55M"
  28. env:
  29. - name: PROMETHEUS_SERVER_ENDPOINT
  30. value: "{{prometheusEndpoint}}" #The endpoint should have the form http://<service-name>.<namespace-name>.svc.cluster.local
  31. - name: CLOUD_PROVIDER_API_KEY
  32. value: "AIzaSyD29bGxmHAVEOBYtgd8sYM2gM2ekfxQX4U" # The GCP Pricing API requires a key.
  33. imagePullPolicy: Always