deployment.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: karma
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: karma
  9. app.kubernetes.io/part-of: monitoring
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: karma
  14. app.kubernetes.io/part-of: monitoring
  15. spec:
  16. containers:
  17. - image: ghcr.io/prymitive/karma:latest
  18. name: karma
  19. ports:
  20. - containerPort: 18578
  21. name: http
  22. protocol: TCP
  23. env:
  24. - name: CONFIG_FILE
  25. value: /etc/karma.yaml
  26. resources:
  27. limits:
  28. cpu: 100m
  29. memory: 300Mi
  30. requests:
  31. cpu: 10m
  32. memory: 100Mi
  33. volumeMounts:
  34. - mountPath: /etc/karma.yaml
  35. subPath: karma.yaml
  36. name: karma-configuration
  37. livenessProbe:
  38. httpGet:
  39. port: 18578
  40. readinessProbe:
  41. httpGet:
  42. port: 18578
  43. volumes:
  44. - name: karma-configuration
  45. configMap:
  46. name: karma-configuration