apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: nova
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-23T10:18:24Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: nova
    component: novnc-proxy
    release_group: nova
  name: nova-novncproxy
  namespace: openstack
  resourceVersion: "16603"
  uid: b5f382e2-2ecf-4c96-befa-943682386456
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: nova
      component: novnc-proxy
      release_group: nova
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 3f7237cc10e3e4e09b2879d01f0621cae2a1e2e491207d4d136b9a7d7657e0bb
        configmap-etc-hash: ebe1cbe57ee56cff0f76ec6f2fad8d4a87b62905ec8d75013606579e38ee3958
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: nova
        component: novnc-proxy
        release_group: nova
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - nova
                - key: application
                  operator: In
                  values:
                  - nova
                - key: component
                  operator: In
                  values:
                  - novnc-proxy
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/nova-console-proxy.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:main@sha256:4d20ff43a98cfa92485d805f8724266e75c27ed46a4c955681c11dfb94a9995e
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 60
          successThreshold: 1
          tcpSocket:
            port: 6080
          timeoutSeconds: 15
        name: nova-novncproxy
        ports:
        - containerPort: 6080
          name: n-novnc
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 60
          successThreshold: 1
          tcpSocket:
            port: 6080
          timeoutSeconds: 15
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/nova-console-proxy.sh
          name: nova-bin
          readOnly: true
          subPath: nova-console-proxy.sh
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          readOnly: true
          subPath: nova.conf
        - mountPath: /etc/nova/logging.conf
          name: nova-etc
          readOnly: true
          subPath: logging.conf
        - mountPath: /usr/share/novnc
          name: pod-usr-share-novnc
          readOnly: true
        - mountPath: /tmp/pod-shared
          name: pod-shared
        - mountPath: /etc/pki/nova-novncproxy
          name: nova-novncproxy-vencrypt
          readOnly: true
      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:percona-xtradb-haproxy
        - name: DEPENDENCY_JOBS
          value: nova-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
      - command:
        - /tmp/nova-console-proxy-init.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:main@sha256:4d20ff43a98cfa92485d805f8724266e75c27ed46a4c955681c11dfb94a9995e
        imagePullPolicy: IfNotPresent
        name: nova-novncproxy-init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/nova-console-proxy-init.sh
          name: nova-bin
          readOnly: true
          subPath: nova-console-proxy-init.sh
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          readOnly: true
          subPath: nova.conf
        - mountPath: /tmp/pod-shared
          name: pod-shared
      - command:
        - /tmp/nova-console-proxy-init-assets.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:main@sha256:4d20ff43a98cfa92485d805f8724266e75c27ed46a4c955681c11dfb94a9995e
        imagePullPolicy: IfNotPresent
        name: nova-novncproxy-init-assets
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/nova-console-proxy-init-assets.sh
          name: nova-bin
          readOnly: true
          subPath: nova-console-proxy-init-assets.sh
        - mountPath: /tmp/usr/share/novnc
          name: pod-usr-share-novnc
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: nova-novncproxy
      serviceAccountName: nova-novncproxy
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: nova-bin
        name: nova-bin
      - name: nova-etc
        secret:
          defaultMode: 292
          secretName: nova-etc
      - emptyDir: {}
        name: pod-usr-share-novnc
      - emptyDir: {}
        name: pod-shared
      - name: nova-novncproxy-vencrypt
        secret:
          defaultMode: 292
          secretName: nova-novncproxy-vencrypt
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-23T10:18:24Z"
    lastUpdateTime: "2026-04-23T10:18:24Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-23T10:18:24Z"
    lastUpdateTime: "2026-04-23T10:21:28Z"
    message: ReplicaSet "nova-novncproxy-97f86c77b" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
