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-23T01:01:25Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: octavia
    component: api
    release_group: octavia
  name: octavia-api
  namespace: openstack
  resourceVersion: "22225"
  uid: a6c3058f-5997-4d3d-8342-40de93582491
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: c4bcb2ed7bca6cdaa6a717953414bfd7a424a44d6e703264226311286766ccaa
        configmap-etc-hash: 1c1fdc2479da8b83f5b7e34eebfba5b206fd70e7a87987be0af4937ed5d7f953
      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:2025.1@sha256:4369d9e24d0e98b17087f4aa3bd6dfa8ea446adb99614580a683606847906834
        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
        - mountPath: /etc/octavia/certs/jobboard-default
          name: octavia-jobboard-default-ca
        - mountPath: /etc/octavia/certs/jobboard-sentinel
          name: octavia-jobboard-sentinel-ca
      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: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
      - name: octavia-jobboard-default-ca
        secret:
          defaultMode: 420
          secretName: valkey-server-certs
      - name: octavia-jobboard-sentinel-ca
        secret:
          defaultMode: 420
          secretName: valkey-server-certs
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-23T01:01:25Z"
    lastUpdateTime: "2026-04-23T01:01:25Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-23T01:01:25Z"
    lastUpdateTime: "2026-04-23T01:03:25Z"
    message: ReplicaSet "octavia-api-78c6d46c7b" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
