apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
  creationTimestamp: "2026-04-02T13:54:16Z"
  generation: 1
  labels:
    app: nmstate-console-plugin
    app.kubernetes.io/component: nmstate-console-plugin
    app.kubernetes.io/instance: nmstate-console-plugin
    app.kubernetes.io/part-of: nmstate-console-plugin
    app.openshift.io/runtime-namespace: openshift-nmstate
  name: nmstate-console-plugin
  namespace: openshift-nmstate
  ownerReferences:
  - apiVersion: nmstate.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: NMState
    name: nmstate
    uid: 210b2bef-7bdf-4bce-b8f4-ec7da2e5942a
  resourceVersion: "34339"
  uid: 142acb41-3827-4828-9aec-e09da03b144e
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: nmstate-console-plugin
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: nmstate-console-plugin
    spec:
      containers:
      - image: registry.redhat.io/openshift4/nmstate-console-plugin-rhel9@sha256:58adb3e9e8f3664a74508118b1b5694c4fd0b2e8457fc559692493f4b934f43c
        imagePullPolicy: Always
        name: nmstate-console-plugin
        ports:
        - containerPort: 9443
          protocol: TCP
        resources:
          requests:
            cpu: 10m
            memory: 50Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/serving-cert
          name: plugin-serving-cert
          readOnly: true
        - mountPath: /etc/nginx/nginx.conf
          name: nginx-conf
          readOnly: true
          subPath: nginx.conf
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - name: plugin-serving-cert
        secret:
          defaultMode: 420
          secretName: plugin-serving-cert
      - configMap:
          defaultMode: 420
          name: nginx-conf
        name: nginx-conf
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-02T13:54:25Z"
    lastUpdateTime: "2026-04-02T13:54:25Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-02T13:54:16Z"
    lastUpdateTime: "2026-04-02T13:54:25Z"
    message: ReplicaSet "nmstate-console-plugin-7b5ddc4dc7" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
