apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: horizon
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-17T04:46:14Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: horizon
    component: server
    release_group: horizon
  name: horizon
  namespace: openstack
  resourceVersion: "10220"
  uid: ecb633b8-01f0-4cfd-9060-7a332286ea0c
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: horizon
      component: server
      release_group: horizon
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: b30e1e345181fd610cecc6a890ebb273820bf8fa0e792cc9a2663d54789a35a8
        configmap-etc-hash: 8830b77598fe21d3ffd33f9785e56de0e5db03d36b9bcbeac4d2b8467bf0240d
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: horizon
        component: server
        release_group: horizon
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - horizon
                - key: application
                  operator: In
                  values:
                  - horizon
                - key: component
                  operator: In
                  values:
                  - server
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/horizon.sh
        - start
        env:
        - name: MY_POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/horizon:main@sha256:e247f40cb27eeee024767f30f923c37f48c3f86fa3590a3639a494f43cc29e88
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/horizon.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 80
            scheme: HTTP
          initialDelaySeconds: 180
          periodSeconds: 60
          successThreshold: 1
          timeoutSeconds: 5
        name: horizon
        ports:
        - containerPort: 80
          name: web
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 80
            scheme: HTTP
          initialDelaySeconds: 15
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: false
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/www/html/
          name: static-horizon
        - mountPath: /tmp/horizon.sh
          name: horizon-bin
          readOnly: true
          subPath: horizon.sh
        - mountPath: /tmp/manage.py
          name: horizon-bin
          readOnly: true
          subPath: manage.py
        - mountPath: /etc/apache2/sites-available/000-default.conf
          name: horizon-etc
          readOnly: true
          subPath: horizon.conf
        - mountPath: /etc/apache2/conf-available/security.conf
          name: horizon-etc
          readOnly: true
          subPath: security.conf
        - mountPath: /var/www/cgi-bin/horizon/django.wsgi
          name: horizon-bin
          readOnly: true
          subPath: django.wsgi
        - mountPath: /etc/openstack-dashboard/local_settings
          name: horizon-etc
          readOnly: true
          subPath: local_settings
        - mountPath: /etc/openstack-dashboard/ceilometer_policy.yaml
          name: horizon-etc
          readOnly: true
          subPath: ceilometer_policy.yaml
        - mountPath: /etc/openstack-dashboard/heat_policy.yaml
          name: horizon-etc
          readOnly: true
          subPath: heat_policy.yaml
        - mountPath: /etc/openstack-dashboard/ceilometer_policy.json
          name: horizon-etc
          readOnly: true
          subPath: ceilometer_policy.json
        - mountPath: /etc/openstack-dashboard/heat_policy.json
          name: horizon-etc
          readOnly: true
          subPath: heat_policy.json
      dnsPolicy: ClusterFirst
      initContainers:
      - command:
        - kubernetes-entrypoint
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: INTERFACE_NAME
          value: eth0
        - name: PATH
          value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
        - name: DEPENDENCY_SERVICE
          value: openstack:memcached,openstack:percona-xtradb-haproxy,openstack:keystone-api
        - name: DEPENDENCY_JOBS
          value: horizon-db-sync
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        fsGroup: 42424
        runAsUser: 42424
      serviceAccount: horizon
      serviceAccountName: horizon
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: wsgi-horizon
      - emptyDir: {}
        name: static-horizon
      - configMap:
          defaultMode: 365
          name: horizon-bin
        name: horizon-bin
      - name: horizon-etc
        secret:
          defaultMode: 292
          secretName: horizon-etc
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-17T04:46:14Z"
    lastUpdateTime: "2026-04-17T04:46:14Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-17T04:46:14Z"
    lastUpdateTime: "2026-04-17T04:47:28Z"
    message: ReplicaSet "horizon-64d9d7845c" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
