apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "18"
  creationTimestamp: "2026-04-02T13:58:10Z"
  generation: 18
  name: dnsmasq-dns
  namespace: openstack
  ownerReferences:
  - apiVersion: network.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: DNSMasq
    name: dns
    uid: 39fcbbf5-fa7a-4ad1-8cc1-7cdc41d56f54
  resourceVersion: "49888"
  uid: 237c7d86-fa6d-4724-b2a7-3812eff4900d
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: dnsmasq
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        service: dnsmasq
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - dnsmasq
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - -c
        - dnsmasq --interface=* --conf-dir=/etc/dnsmasq.d --hostsdir=/etc/dnsmasq.d/hosts
          --keep-in-foreground --log-debug --bind-interfaces --listen-address=$(POD_IP)
          --port 5353 --log-facility=- --no-hosts --domain-needed --no-resolv --bogus-priv
          --log-queries
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: nf5hd6h688h7ch5c9h54h5b4h58fh59ch56ch64h57ch5hf7hd4h64dhdh598h5fbh69hch674h557h5f4h654h58fh5c4h586h78h5dhbdh57cq
        - name: POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
        image: quay.io/podified-antelope-centos9/openstack-neutron-server:current-podified
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          initialDelaySeconds: 3
          periodSeconds: 3
          successThreshold: 1
          tcpSocket:
            port: 5353
          timeoutSeconds: 5
        name: dnsmasq-dns
        readinessProbe:
          failureThreshold: 3
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          tcpSocket:
            port: 5353
          timeoutSeconds: 5
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          runAsNonRoot: true
          seccompProfile:
            type: RuntimeDefault
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/dnsmasq.d/config.cfg
          name: config
          readOnly: true
          subPath: dns
        - mountPath: /etc/dnsmasq.d/hosts/dns-svc
          name: dns-svc
          readOnly: true
          subPath: dns-svc
        - mountPath: /etc/dnsmasq.d/hosts/dns-swift-storage-0
          name: dns-swift-storage-0
          readOnly: true
          subPath: dns-swift-storage-0
        - mountPath: /etc/dnsmasq.d/hosts/openstack-edpm-ipam
          name: openstack-edpm-ipam
          readOnly: true
          subPath: openstack-edpm-ipam
        - mountPath: /etc/dnsmasq.d/hosts/ovsdbserver-nb
          name: ovsdbserver-nb
          readOnly: true
          subPath: ovsdbserver-nb
        - mountPath: /etc/dnsmasq.d/hosts/ovsdbserver-sb
          name: ovsdbserver-sb
          readOnly: true
          subPath: ovsdbserver-sb
      dnsPolicy: ClusterFirst
      initContainers:
      - args:
        - -c
        - dnsmasq --interface=* --conf-dir=/etc/dnsmasq.d --hostsdir=/etc/dnsmasq.d/hosts
          --keep-in-foreground --log-debug --bind-interfaces --listen-address=$(POD_IP)
          --port 5353 --log-facility=- --no-hosts --domain-needed --no-resolv --bogus-priv
          --log-queries --test
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: nf5hd6h688h7ch5c9h54h5b4h58fh59ch56ch64h57ch5hf7hd4h64dhdh598h5fbh69hch674h557h5f4h654h58fh5c4h586h78h5dhbdh57cq
        - name: POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
        image: quay.io/podified-antelope-centos9/openstack-neutron-server:current-podified
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          runAsNonRoot: true
          seccompProfile:
            type: RuntimeDefault
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/dnsmasq.d/config.cfg
          name: config
          readOnly: true
          subPath: dns
        - mountPath: /etc/dnsmasq.d/hosts/dns-svc
          name: dns-svc
          readOnly: true
          subPath: dns-svc
        - mountPath: /etc/dnsmasq.d/hosts/dns-swift-storage-0
          name: dns-swift-storage-0
          readOnly: true
          subPath: dns-swift-storage-0
        - mountPath: /etc/dnsmasq.d/hosts/openstack-edpm-ipam
          name: openstack-edpm-ipam
          readOnly: true
          subPath: openstack-edpm-ipam
        - mountPath: /etc/dnsmasq.d/hosts/ovsdbserver-nb
          name: ovsdbserver-nb
          readOnly: true
          subPath: ovsdbserver-nb
        - mountPath: /etc/dnsmasq.d/hosts/ovsdbserver-sb
          name: ovsdbserver-sb
          readOnly: true
          subPath: ovsdbserver-sb
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: dnsmasq-dns
      serviceAccountName: dnsmasq-dns
      terminationGracePeriodSeconds: 10
      volumes:
      - configMap:
          defaultMode: 420
          name: dns
        name: config
      - configMap:
          defaultMode: 420
          name: dns-svc
        name: dns-svc
      - configMap:
          defaultMode: 420
          name: dns-swift-storage-0
        name: dns-swift-storage-0
      - configMap:
          defaultMode: 420
          name: openstack-edpm-ipam
        name: openstack-edpm-ipam
      - configMap:
          defaultMode: 420
          name: ovsdbserver-nb
        name: ovsdbserver-nb
      - configMap:
          defaultMode: 420
          name: ovsdbserver-sb
        name: ovsdbserver-sb
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-02T13:58:34Z"
    lastUpdateTime: "2026-04-02T13:58:34Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-02T13:58:10Z"
    lastUpdateTime: "2026-04-02T14:04:41Z"
    message: ReplicaSet "dnsmasq-dns-8c6f6df99" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 18
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
