deployment.yaml 1009 B

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