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: |
| 19 | - apiVersion: source.toolkit.fluxcd.io/v1beta2 |
| 20 | kind: HelmRepository |
| 21 | metadata: |
| 22 | name: coredns |
| 23 | namespace: openstack |
| 24 | spec: |
| 25 | interval: 60s |
| 26 | url: https://coredns.github.io/helm |
| 27 | |
| 28 | - apiVersion: helm.toolkit.fluxcd.io/v2beta1 |
| 29 | kind: HelmRelease |
| 30 | metadata: |
| 31 | name: neutron-coredns |
| 32 | namespace: openstack |
| 33 | spec: |
| 34 | interval: 60s |
| 35 | chart: |
| 36 | spec: |
| 37 | chart: coredns |
| 38 | version: 1.19.4 |
| 39 | sourceRef: |
| 40 | kind: HelmRepository |
| 41 | name: coredns |
| 42 | values: |
| 43 | replicaCount: 3 |
| 44 | service: |
| 45 | name: neutron-coredns |
| 46 | clusterIP: 10.96.0.20 |
| 47 | isClusterService: false |
| 48 | servers: |
| 49 | - port: 53 |
| 50 | zones: |
| 51 | - zone: . |
| 52 | plugins: |
| 53 | - name: errors |
| 54 | - name: ready |
| 55 | - name: health |
| 56 | configBlock: |- |
| 57 | lameduck 5s |
| 58 | - name: prometheus |
| 59 | parameters: 0.0.0.0:9153 |
| 60 | - name: cache |
| 61 | - name: reload |
| 62 | - name: loadbalance |
| 63 | - name: forward |
| 64 | parameters: . 127.0.0.1:5301 127.0.0.1:5302 |
| 65 | - port: 5301 |
| 66 | zones: |
| 67 | - zone: . |
| 68 | plugins: |
| 69 | - name: forward |
| 70 | parameters: . tls://1.1.1.1 tls://1.0.0.1 |
| 71 | configBlock: |- |
| 72 | tls_servername cloudflare-dns.com |
| 73 | health_check 5s |
| 74 | - port: 5302 |
| 75 | zones: |
| 76 | - zone: . |
| 77 | plugins: |
| 78 | - name: forward |
| 79 | parameters: . tls://8.8.8.8 tls://8.8.4.4 |
| 80 | configBlock: |- |
| 81 | tls_servername dns.google |
| 82 | health_check 5s |
| 83 | nodeSelector: |
| 84 | openstack-control-plane: enabled |
| 85 | customLabels: |
| 86 | application: neutron |
| 87 | component: coredns |
| 88 | deployment: |
| 89 | name: neutron-coredns |