Mohammed Naser | 462cd79 | 2022-08-22 14:17:20 -0400 | [diff] [blame] | 1 | # Copyright (c) 2022 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | - name: Deploy Helm chart |
| 16 | kubernetes.core.k8s: |
| 17 | state: present |
| 18 | definition: |
Mohammed Naser | 462cd79 | 2022-08-22 14:17:20 -0400 | [diff] [blame] | 19 | - apiVersion: helm.toolkit.fluxcd.io/v2beta1 |
| 20 | kind: HelmRelease |
| 21 | metadata: |
| 22 | name: neutron-coredns |
| 23 | namespace: openstack |
| 24 | spec: |
| 25 | interval: 60s |
| 26 | chart: |
| 27 | spec: |
| 28 | chart: coredns |
| 29 | version: 1.19.4 |
| 30 | sourceRef: |
| 31 | kind: HelmRepository |
| 32 | name: coredns |
| 33 | values: |
Mohammed Naser | 71ebfe8 | 2022-12-28 05:28:16 +0000 | [diff] [blame] | 34 | image: |
Mohammed Naser | 8b5c306 | 2023-01-14 01:47:20 -0500 | [diff] [blame] | 35 | repository: "{{ atmosphere_images['neutron_coredns'] | docker_image('name') }}" |
Mohammed Naser | 462cd79 | 2022-08-22 14:17:20 -0400 | [diff] [blame] | 36 | replicaCount: 3 |
Mohammed Naser | 0512445 | 2022-08-22 17:24:03 -0400 | [diff] [blame] | 37 | prometheus: |
| 38 | service: |
| 39 | enabled: true |
Mohammed Naser | 462cd79 | 2022-08-22 14:17:20 -0400 | [diff] [blame] | 40 | service: |
| 41 | name: neutron-coredns |
Jason Hall | 662866f | 2022-10-10 07:55:33 -0400 | [diff] [blame] | 42 | clusterIP: "{{ neutron_coredns_cluster_ip | default('10.96.0.20') }}" |
Mohammed Naser | 462cd79 | 2022-08-22 14:17:20 -0400 | [diff] [blame] | 43 | isClusterService: false |
| 44 | servers: |
| 45 | - port: 53 |
| 46 | zones: |
| 47 | - zone: . |
| 48 | plugins: |
| 49 | - name: errors |
| 50 | - name: ready |
| 51 | - name: health |
| 52 | configBlock: |- |
| 53 | lameduck 5s |
| 54 | - name: prometheus |
| 55 | parameters: 0.0.0.0:9153 |
| 56 | - name: cache |
| 57 | - name: reload |
| 58 | - name: loadbalance |
| 59 | - name: forward |
| 60 | parameters: . 127.0.0.1:5301 127.0.0.1:5302 |
| 61 | - port: 5301 |
| 62 | zones: |
| 63 | - zone: . |
| 64 | plugins: |
| 65 | - name: forward |
| 66 | parameters: . tls://1.1.1.1 tls://1.0.0.1 |
| 67 | configBlock: |- |
| 68 | tls_servername cloudflare-dns.com |
| 69 | health_check 5s |
| 70 | - port: 5302 |
| 71 | zones: |
| 72 | - zone: . |
| 73 | plugins: |
| 74 | - name: forward |
| 75 | parameters: . tls://8.8.8.8 tls://8.8.4.4 |
| 76 | configBlock: |- |
| 77 | tls_servername dns.google |
| 78 | health_check 5s |
| 79 | nodeSelector: |
| 80 | openstack-control-plane: enabled |
| 81 | customLabels: |
| 82 | application: neutron |
| 83 | component: coredns |
| 84 | deployment: |
| 85 | name: neutron-coredns |