apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
  creationTimestamp: "2026-04-07T00:59:00Z"
  generation: 1
  labels:
    application: openstack-exporter
  name: openstack-exporter
  namespace: openstack
  resourceVersion: "27114"
  uid: 2d2c2fce-6413-40ba-8ed5-fc7f9c69e169
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      application: openstack-exporter
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: openstack-exporter
    spec:
      containers:
      - args:
        - --endpoint-type
        - internal
        - default
        - --collect-metric-time
        - -d cinder-agent_state
        - -d cinder-limits_backup_max_gb
        - -d cinder-limits_backup_used_gb
        - -d cinder-limits_volume_max_gb
        - -d cinder-limits_volume_used_gb
        - -d cinder-snapshots
        - -d cinder-volume_gb
        - -d cinder-volume_status
        - -d cinder-volume_status_counter
        - -d cinder-volume_type_quota_gigabytes
        - -d cinder-volumes
        - --disable-service.identity
        - --disable-service.image
        - --disable-service.placement
        - --disable-service.compute
        - --disable-service.object-store
        - --disable-service.load-balancer
        - --disable-service.container-infra
        - --disable-service.dns
        - --disable-service.baremetal
        - --disable-service.gnocchi
        - --disable-service.database
        - --disable-service.orchestration
        - -d neutron-l3_agent_of_router
        - -d neutron-floating_ip
        - -d neutron-floating_ips
        - -d neutron-floating_ips_associated_not_active
        - -d neutron-network
        - -d neutron-network_ip_availabilities_total
        - -d neutron-network_ip_availabilities_used
        - -d neutron-networks
        - -d neutron-port
        - -d neutron-ports
        - -d neutron-ports_lb_not_active
        - -d neutron-ports_no_ips
        - -d neutron-quota_floatingip
        - -d neutron-quota_network
        - -d neutron-quota_port
        - -d neutron-quota_rbac_policy
        - -d neutron-quota_router
        - -d neutron-quota_security_group
        - -d neutron-quota_security_group_rule
        - -d neutron-quota_subnet
        - -d neutron-quota_subnetpool
        - -d neutron-router
        - -d neutron-routers
        - -d neutron-routers_not_active
        - -d neutron-security_groups
        - -d neutron-subnet
        - -d neutron-subnets
        env:
        - name: OS_COMPUTE_API_VERSION
          value: "2.87"
        image: harbor.atmosphere.dev/ghcr.io/openstack-exporter/openstack-exporter:1.7.0
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 9180
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: openstack-exporter
        ports:
        - containerPort: 9180
          name: metrics
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 9180
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/openstack
          name: openstack-config
      dnsPolicy: ClusterFirst
      initContainers:
      - args:
        - |
          cat <<EOF > /etc/openstack/clouds.yaml
          ---
          clouds:
            default:
              auth:
                auth_url: "$(OS_AUTH_URL)"
                project_domain_name: "$(OS_PROJECT_DOMAIN_NAME)"
                project_name: "$(OS_PROJECT_NAME)"
                user_domain_name: "$(OS_USER_DOMAIN_NAME)"
                username: "$(OS_USERNAME)"
                password: "$(OS_PASSWORD)"
              region_name: "$(OS_REGION_NAME)"
              interface: "$(OS_INTERFACE)"
              identity_api_version: 3
              identity_interface: "$(OS_INTERFACE)"
          EOF
        command:
        - bash
        - -ec
        envFrom:
        - secretRef:
            name: keystone-keystone-admin
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:2024.1@sha256:273a87a06ad3acd8decfb6c6f8660f651e0c1e471fd1c120b1ed89717b393a4d
        imagePullPolicy: IfNotPresent
        name: build-config
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/openstack
          name: openstack-config
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: openstack-config
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-07T00:59:11Z"
    lastUpdateTime: "2026-04-07T00:59:11Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-07T00:59:00Z"
    lastUpdateTime: "2026-04-07T00:59:11Z"
    message: ReplicaSet "openstack-exporter-6f8bcbfcff" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
