apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: octavia
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-07T00:47:20Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: octavia
    component: api
    release_group: octavia
  name: octavia-api
  namespace: openstack
  resourceVersion: "24423"
  uid: e362a557-1583-4b40-ae44-c1ee46b38201
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: octavia
      component: api
      release_group: octavia
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 6a12c7a1c81b64fbdccd21b6e8fb66de4e53f0e3d52cc1ecc82b5e5d460eb19a
        configmap-etc-hash: 7b9995699dceff55af832483736cafb4476c8f01ed375e93c2d9ee1794577a2e
      creationTimestamp: null
      labels:
        application: octavia
        component: api
        release_group: octavia
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - octavia
                - key: application
                  operator: In
                  values:
                  - octavia
                - key: component
                  operator: In
                  values:
                  - api
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/octavia-api.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/octavia:zed@sha256:6cb3bed8234826a09310848d067c35239d6b9434d710648fadd91468e4e96aa0
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/octavia-api.sh
              - stop
        name: octavia-api
        ports:
        - containerPort: 9876
          name: o-api
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 9876
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        securityContext:
          runAsUser: 42424
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/octavia
          name: pod-etc-octavia
        - mountPath: /tmp/octavia-api.sh
          name: octavia-bin
          readOnly: true
          subPath: octavia-api.sh
        - mountPath: /etc/octavia/octavia.conf
          name: octavia-etc
          readOnly: true
          subPath: octavia.conf
        - mountPath: /etc/octavia/octavia-api-uwsgi.ini
          name: octavia-etc
          readOnly: true
          subPath: octavia-api-uwsgi.ini
        - mountPath: /etc/octavia/certs/server
          name: octavia-server-ca
        - mountPath: /etc/octavia/certs/client
          name: octavia-client-certs
      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,openstack:keystone-api,openstack:rabbitmq-octavia,openstack:memcached,openstack:neutron-server
        - name: DEPENDENCY_JOBS
          value: octavia-db-sync,octavia-ks-user,octavia-ks-endpoints,octavia-rabbit-init
        - 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
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: octavia-api
      serviceAccountName: octavia-api
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-etc-octavia
      - configMap:
          defaultMode: 365
          name: octavia-bin
        name: octavia-bin
      - name: octavia-etc
        secret:
          defaultMode: 292
          secretName: octavia-etc
      - name: octavia-server-ca
        secret:
          defaultMode: 420
          secretName: octavia-server-ca
      - name: octavia-client-certs
        secret:
          defaultMode: 420
          secretName: octavia-client-certs
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-07T00:47:20Z"
    lastUpdateTime: "2026-04-07T00:47:20Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-07T00:47:20Z"
    lastUpdateTime: "2026-04-07T00:49:11Z"
    message: ReplicaSet "octavia-api-548f575b5b" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
