apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    component: cost-efficiency-slo-controller
    tier: control-plane
  name: cost-efficiency-slo-controller
  namespace: polaris
spec:
  selector:
    matchLabels:
      component: cost-efficiency-slo-controller
      tier: control-plane
  replicas: 1
  template:
    metadata:
      labels:
        component: cost-efficiency-slo-controller
        tier: control-plane
    spec:
      serviceAccountName: cost-efficiency-slo-controller
      containers:
      - image: polarissloc/slo-cost-efficiency:latest
        name: slo-controller
        resources:
          limits:
            cpu: '1.0'
            memory: 512Mi
        env:
          - name: PROMETHEUS_HOST
            value: prometheus-release-1-prome-prometheus.default.svc
          - name: PROMETHEUS_PORT
            value: '9090'
        securityContext:
          privileged: false

