blob: 31b729c17459ada409d5c0a2aa7ca4ec57954ddb [file] [log] [blame]
gioe72b54f2024-04-22 10:44:41 +04001input: {
2 servers: [...#Server]
3}
4
5#Server: {
6 zone: string
7 address: string
8}
9
10name: "dns-gateway"
11namespace: "dns-gateway"
12
13images: {
14 coredns: {
15 repository: "coredns"
16 name: "coredns"
17 tag: "1.11.1"
18 pullPolicy: "IfNotPresent"
19 }
20}
21
22charts: {
23 coredns: {
24 chart: "charts/coredns"
25 sourceRef: {
26 kind: "GitRepository"
27 name: "pcloud"
28 namespace: global.pcloudEnvName
29 }
30 }
31}
32
33helm: {
34 coredns: {
35 chart: charts.coredns
36 values: {
37 image: {
38 repository: images.coredns.fullName
39 tag: images.coredns.tag
40 pullPolicy: images.coredns.pullPolicy
41 }
42 replicaCount: 1
43 resources: {
44 limits: {
45 cpu: "100m"
46 memory: "128Mi"
47 }
48 requests: {
49 cpu: "100m"
50 memory: "128Mi"
51 }
52 }
53 rollingUpdate: {
54 maxUnavailable: 1
55 maxSurge: "25%"
56 }
57 terminationGracePeriodSeconds: 30
58 serviceType: "ClusterIP"
59 service: name: "coredns"
60 serviceAccount: create: false
61 rbac: {
62 create: false
63 pspEnable: false
64 }
65 isClusterService: false
66 if len(input.servers) > 0 {
67 servers: [
68 for s in input.servers {
69 zones: [{
70 zone: s.zone
71 }]
72 port: 53
73 plugins: [{
74 name: "log"
75 }, {
76 name: "forward"
77 parameters: ". \(s.address)"
78 }, {
79 name: "health"
80 configBlock: "lameduck 5s"
81 }, {
82 name: "ready"
83 }]
84 }
85 ]
86 }
87 if len(input.servers) == 0 {
88 servers: [{
89 zones: [{
90 zone: "."
91 }]
92 port: 53
93 plugins: [{
94 name: "ready"
95 }]
96 }]
97 }
98 livenessProbe: {
99 enabled: true
100 initialDelaySeconds: 60
101 periodSeconds: 10
102 timeoutSeconds: 5
103 failureThreshold: 5
104 successThreshold: 1
105 }
106 readinessProbe: {
107 enabled: true
108 initialDelaySeconds: 30
109 periodSeconds: 10
110 timeoutSeconds: 5
111 failureThreshold: 5
112 successThreshold: 1
113 }
114 zoneFiles: []
115 hpa: enabled: false
116 autoscaler: enabled: false
117 deployment: enabled: true
118 }
119 }
120}