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-22T19:00:58Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: nova
    component: novnc-proxy
    release_group: nova
  name: nova-novncproxy
  namespace: openstack
  resourceVersion: "16527"
  uid: d5a7747a-1adf-4525-b03a-90c83c73d7bc
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: 8a57d562bbf9c49449ea876ab5fea8e17ef2b87db3cfbf34c062d99bc45818c9
        configmap-etc-hash: 3b0287ee30463367406d38dfa7e573dea247e1eb48bb8bb2fcb242400df374da
        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:2023.1@sha256:61cf034f65a01e090a06bd114dcb819dd2177b86d08d8964172ac4aa19ba978a
        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@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
        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:2023.1@sha256:61cf034f65a01e090a06bd114dcb819dd2177b86d08d8964172ac4aa19ba978a
        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:2023.1@sha256:61cf034f65a01e090a06bd114dcb819dd2177b86d08d8964172ac4aa19ba978a
        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-22T19:00:58Z"
    lastUpdateTime: "2026-04-22T19:00:58Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-22T19:00:58Z"
    lastUpdateTime: "2026-04-22T19:03:02Z"
    message: ReplicaSet "nova-novncproxy-6cc7fd88d4" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
