apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: b30e1e345181fd610cecc6a890ebb273820bf8fa0e792cc9a2663d54789a35a8
    configmap-etc-hash: 606f2ac40784b28cda9bc8238b9f641faee5181556ee6b5a112831129d8dda4a
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-10T04:22:31Z"
  generateName: horizon-5d96cf977f-
  labels:
    application: horizon
    component: server
    pod-template-hash: 5d96cf977f
    release_group: horizon
  name: horizon-5d96cf977f-q42tr
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: horizon-5d96cf977f
    uid: e2849fab-39c0-42d3-a741-75408f70d9cf
  resourceVersion: "7809"
  uid: 63128ab1-a75d-43d3-9438-3a6470f753ff
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:923fbe0498af9085361a5969533b352f61dc322a7753eea322afae16e28de8cd
    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
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-gkjmx
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  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@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    imagePullPolicy: IfNotPresent
    name: init
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
      runAsUser: 65534
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-gkjmx
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    fsGroup: 42424
    runAsUser: 42424
  serviceAccount: horizon
  serviceAccountName: horizon
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  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
  - name: kube-api-access-gkjmx
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-04-10T04:23:03Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-10T04:22:31Z"
    message: 'containers with unready status: [horizon]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-10T04:22:31Z"
    message: 'containers with unready status: [horizon]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-10T04:22:31Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://eb21572c4078d22c6587fa9068f4c700b4e201753c02b3216179a7f0ee98917b
    image: sha256:b7889789384d4eea5782459b525810add3ac90fbf7ad70775d5ccc9934a9a4b9
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/horizon@sha256:923fbe0498af9085361a5969533b352f61dc322a7753eea322afae16e28de8cd
    lastState:
      terminated:
        containerID: containerd://eb21572c4078d22c6587fa9068f4c700b4e201753c02b3216179a7f0ee98917b
        exitCode: 1
        finishedAt: "2026-04-10T04:25:31Z"
        reason: Error
        startedAt: "2026-04-10T04:25:19Z"
    name: horizon
    ready: false
    restartCount: 4
    started: false
    state:
      waiting:
        message: back-off 1m20s restarting failed container=horizon pod=horizon-5d96cf977f-q42tr_openstack(63128ab1-a75d-43d3-9438-3a6470f753ff)
        reason: CrashLoopBackOff
  hostIP: 199.204.45.122
  initContainerStatuses:
  - containerID: containerd://d94478fe1841640dbbdb56d33669a44f5c0d8ddb69946a85f64eafdba9008e66
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://d94478fe1841640dbbdb56d33669a44f5c0d8ddb69946a85f64eafdba9008e66
        exitCode: 0
        finishedAt: "2026-04-10T04:23:02Z"
        reason: Completed
        startedAt: "2026-04-10T04:22:32Z"
  phase: Running
  podIP: 10.0.0.176
  podIPs:
  - ip: 10.0.0.176
  qosClass: BestEffort
  startTime: "2026-04-10T04:22:31Z"
