apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "19"
  creationTimestamp: "2026-04-04T02:19:52Z"
  generation: 19
  name: dnsmasq-dns
  namespace: openstack
  ownerReferences:
  - apiVersion: network.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: DNSMasq
    name: dns
    uid: adafb7b3-e53f-4e78-8794-706f79de2ea0
  resourceVersion: "55835"
  uid: 0a61bc69-2074-485d-a1a6-195a2be90d4f
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: n5c9h584h656h75h669h65h5b8h647h5bdh59ch5bch5fh5c4h78h5f4h55dh669h668hb4h5bh5b7hc7h5cfhd8h5dch68h59dh57bhb8h74h97h674q
        - name: POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
        image: 38.102.83.110:5001/podified-master-centos10/openstack-neutron-server:watcher_latest
        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: n5c9h584h656h75h669h65h5b8h647h5bdh59ch5bch5fh5c4h78h5f4h55dh669h668hb4h5bh5b7hc7h5cfhd8h5dch68h59dh57bhb8h74h97h674q
        - name: POD_IP
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIP
        image: 38.102.83.110:5001/podified-master-centos10/openstack-neutron-server:watcher_latest
        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-04T02:21:01Z"
    lastUpdateTime: "2026-04-04T02:21:01Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-04T02:19:52Z"
    lastUpdateTime: "2026-04-04T02:30:15Z"
    message: ReplicaSet "dnsmasq-dns-7444fdbf45" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 19
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
