{{- if .Values.keppel.anycast_domain_name }}
kind: Deployment
apiVersion: apps/v1

metadata:
  name: keppel-anycast-monitor

spec:
  revisionHistoryLimit: 5
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      name: keppel-anycast-monitor
  template:
    metadata:
      labels:
        name: keppel-anycast-monitor
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "8080"
        prometheus.io/targets: "openstack"
    spec:
      containers:
        - name: monitor
          image: {{include "keppel_image" .}}
          imagePullPolicy: IfNotPresent
          args:
            - server
            - anycastmonitor
            - "https://{{ .Values.keppel.anycast_domain_name }}"
            - {{ quote .Values.keppel.anycast_domain_name }}
            - {{ quote .Values.keppel.healthcheck_account }}
            {{- range .Values.keppel.peers }}
            - {{ quote .healthcheck_account }}
            {{- end }}
          env:
            - name:  KEPPEL_DEBUG
              value: 'false'
          # initially same as keppel-health-monitor
          resources:
            requests:
              cpu: "10m"
              memory: "64Mi"
            limits:
              cpu: "10m"
              memory: "64Mi"
{{- end }}

{{- if .Values.keppel.anycast_domain_name }}
kind: Deployment
apiVersion: apps/v1

metadata:
  name: keppel-anycast-monitor

spec:
  revisionHistoryLimit: 5
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      name: keppel-anycast-monitor
  template:
    metadata:
      labels:
        name: keppel-anycast-monitor
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "8080"
        prometheus.io/targets: "openstack"
    spec:
      containers:
        - name: monitor
          image: {{include "keppel_image" .}}
          imagePullPolicy: IfNotPresent
          args:
            - server
            - anycastmonitor
            - "https://{{ .Values.keppel.anycast_domain_name }}"
            - "keppel.{{ .Values.global.region }}.{{ .Values.global.tld }}"
            - {{ quote .Values.keppel.healthcheck_account }}
            {{- range .Values.keppel.peers }}
            - {{ quote .healthcheck_account }}
            {{- end }}
          env:
            - name:  KEPPEL_DEBUG
              value: 'false'
          # initially same as keppel-health-monitor
          resources:
            requests:
              cpu: "10m"
              memory: "64Mi"
            limits:
              cpu: "10m"
              memory: "64Mi"
{{- end }}

Revert "keppel: fix anycast-monitor in QA"
Revert "keppel: fix anycast-monitor in QA"

This reverts commit 553e99a4d45b3c913b82519c0978f7e4efb87ada.

What was I thinking? This isn't the anycast domain name, it's the local
API public hostname.
