diff --git a/share/dns/datas.tf b/share/dns/datas.tf index baed5aa..1ea2225 100644 --- a/share/dns/datas.tf +++ b/share/dns/datas.tf @@ -29,13 +29,13 @@ data "kustomization_overlay" "data" { patches { target { kind = "Deployment" - name = "coredns-coredns" + name = "coredns" } patch = <<-EOF apiVersion: apps/v1 kind: Deployment metadata: - name: coredns-coredns + name: coredns spec: template: spec: diff --git a/share/dns/index.yaml b/share/dns/index.yaml index c63783d..4879775 100644 --- a/share/dns/index.yaml +++ b/share/dns/index.yaml @@ -6,50 +6,6 @@ metadata: name: dns description: null options: - image: - default: - pullPolicy: IfNotPresent - registry: docker.io - repository: coredns/coredns - tag: 1.11.1 - examples: - - pullPolicy: IfNotPresent - registry: docker.io - repository: coredns/coredns - tag: 1.11.1 - properties: - pullPolicy: - default: IfNotPresent - enum: - - Always - - Never - - IfNotPresent - type: string - registry: - default: docker.io - type: string - repository: - default: coredns/coredns - type: string - tag: - default: 1.11.1 - type: string - type: object - sub_domain: - default: dns - examples: - - dns - type: string - domain: - default: your-company - examples: - - your-company - type: string - forward: - default: 192.168.1.254 - examples: - - 192.168.1.254 - type: string zones: default: [] items: @@ -98,11 +54,55 @@ options: type: string type: object type: array + forward: + default: 192.168.1.254 + examples: + - 192.168.1.254 + type: string + domain: + default: your-company + examples: + - your-company + type: string + sub_domain: + default: dns + examples: + - dns + type: string domain_name: default: your_company.com examples: - your_company.com type: string + image: + default: + pullPolicy: IfNotPresent + registry: docker.io + repository: coredns/coredns + tag: 1.11.1 + examples: + - pullPolicy: IfNotPresent + registry: docker.io + repository: coredns/coredns + tag: 1.11.1 + properties: + pullPolicy: + default: IfNotPresent + enum: + - Always + - Never + - IfNotPresent + type: string + registry: + default: docker.io + type: string + repository: + default: coredns/coredns + type: string + tag: + default: 1.11.1 + type: string + type: object dependencies: [] providers: kubernetes: true