blob: 7802599eabc16c59d5d53215ab799f175d3bd4cf [file] [log] [blame]
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04001input: {
gio44f621b2024-04-29 09:44:38 +04002 network: #Network @name(Network)
3 subdomain: string @name(Subdomain)
4 auth: #Auth @name(Authentication)
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04005}
6
7_domain: "\(input.subdomain).\(input.network.domain)"
gio09a3e5b2024-04-26 14:11:06 +04008url: "https://\(_domain)"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04009
Giorgi Lekveishvilief21c132024-01-17 18:57:58 +040010name: "Pi-hole"
11namespace: "app-pihole"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040012readme: "Installs pihole at https://\(_domain)"
Giorgi Lekveishvilief21c132024-01-17 18:57:58 +040013description: "Pi-hole is a Linux network-level advertisement and Internet tracker blocking application which acts as a DNS sinkhole and optionally a DHCP server, intended for use on a private network."
14icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24 24'><path fill='currentColor' d='M4.344 0c.238 4.792 3.256 7.056 6.252 7.376c.165-1.692-4.319-5.6-4.319-5.6c-.008-.011.009-.025.019-.014c0 0 4.648 4.01 5.423 5.645c2.762-.15 5.196-1.947 5-4.912c0 0-4.12-.613-5 4.618C11.48 2.753 8.993 0 4.344 0zM12 7.682v.002a3.68 3.68 0 0 0-2.591 1.077L4.94 13.227a3.683 3.683 0 0 0-.86 1.356a3.31 3.31 0 0 0-.237 1.255A3.681 3.681 0 0 0 4.92 18.45l4.464 4.466a3.69 3.69 0 0 0 2.251 1.06l.002.001c.093.01.187.015.28.017l-.1-.008c.06.003.117.009.177.009l-.077-.001L12 24l-.004-.005a3.68 3.68 0 0 0 2.61-1.077l4.469-4.465a3.683 3.683 0 0 0 1.006-1.888l.012-.063a3.682 3.682 0 0 0 .057-.541l.003-.061c0-.017.003-.05.004-.06h-.002a3.683 3.683 0 0 0-1.077-2.607l-4.466-4.468a3.694 3.694 0 0 0-1.564-.927l-.07-.02a3.43 3.43 0 0 0-.946-.133L12 7.682zm3.165 3.357c.023 1.748-1.33 3.078-1.33 4.806c.164 2.227 1.733 3.207 3.266 3.146c-.035.003-.068.007-.104.009c-1.847.135-3.209-1.326-5.002-1.326c-2.23.164-3.21 1.736-3.147 3.27l-.008-.104c-.133-1.847 1.328-3.21 1.328-5.002c-.173-2.32-1.867-3.284-3.46-3.132c.1-.011.203-.021.31-.027c1.847-.133 3.209 1.328 5.002 1.328c2.082-.155 3.074-1.536 3.145-2.968zM4.344 0c.238 4.792 3.256 7.056 6.252 7.376c.165-1.692-4.319-5.6-4.319-5.6c-.008-.011.009-.025.019-.014c0 0 4.648 4.01 5.423 5.645c2.762-.15 5.196-1.947 5-4.912c0 0-4.12-.613-5 4.618C11.48 2.753 8.993 0 4.344 0zM12 7.682v.002a3.68 3.68 0 0 0-2.591 1.077L4.94 13.227a3.683 3.683 0 0 0-.86 1.356a3.31 3.31 0 0 0-.237 1.255A3.681 3.681 0 0 0 4.92 18.45l4.464 4.466a3.69 3.69 0 0 0 2.251 1.06l.002.001c.093.01.187.015.28.017l-.1-.008c.06.003.117.009.177.009l-.077-.001L12 24l-.004-.005a3.68 3.68 0 0 0 2.61-1.077l4.469-4.465a3.683 3.683 0 0 0 1.006-1.888l.012-.063a3.682 3.682 0 0 0 .057-.541l.003-.061c0-.017.003-.05.004-.06h-.002a3.683 3.683 0 0 0-1.077-2.607l-4.466-4.468a3.694 3.694 0 0 0-1.564-.927l-.07-.02a3.43 3.43 0 0 0-.946-.133L12 7.682zm3.165 3.357c.023 1.748-1.33 3.078-1.33 4.806c.164 2.227 1.733 3.207 3.266 3.146c-.035.003-.068.007-.104.009c-1.847.135-3.209-1.326-5.002-1.326c-2.23.164-3.21 1.736-3.147 3.27l-.008-.104c-.133-1.847 1.328-3.21 1.328-5.002c-.173-2.32-1.867-3.284-3.46-3.132c.1-.011.203-.021.31-.027c1.847-.133 3.209 1.328 5.002 1.328c2.082-.155 3.074-1.536 3.145-2.968z'/></svg>"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040015
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040016_serviceWebPort: 80
17
gio1de49582024-04-21 08:33:57 +040018ingress: {
19 pihole: {
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040020 auth: input.auth
21 network: input.network
22 subdomain: input.subdomain
gio1de49582024-04-21 08:33:57 +040023 service: {
24 name: "pihole-web"
25 port: number: _serviceWebPort
26 }
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040027 }
28}
29
gio1de49582024-04-21 08:33:57 +040030images: {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040031 pihole: {
32 repository: "pihole"
33 name: "pihole"
34 tag: "v5.8.1"
35 pullPolicy: "IfNotPresent"
36 }
37}
38
gio1de49582024-04-21 08:33:57 +040039charts: {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040040 pihole: {
giof8843412024-05-22 16:38:05 +040041 kind: "GitRepository"
42 address: "https://github.com/giolekva/pcloud.git"
43 branch: "main"
44 path: "charts/pihole"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040045 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040046}
47
gio1de49582024-04-21 08:33:57 +040048helm: {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040049 pihole: {
50 chart: charts.pihole
giof9f0bee2024-06-11 20:10:05 +040051 info: "Installing Pi-hole server"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040052 values: {
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040053 fullnameOverride: "pihole"
54 persistentVolumeClaim: { // TODO(gio): create volume separately as a dependency
55 enabled: true
56 size: "5Gi"
57 }
58 admin: {
59 enabled: false
60 }
61 ingress: {
62 enabled: false
63 }
64 serviceDhcp: {
65 enabled: false
66 }
67 serviceDns: {
68 type: "ClusterIP"
69 }
70 serviceWeb: {
71 type: "ClusterIP"
72 http: {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040073 enabled: true
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040074 port: _serviceWebPort
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040075 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040076 https: {
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040077 enabled: false
78 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040079 }
80 virtualHost: _domain
81 resources: {
82 requests: {
83 cpu: "250m"
84 memory: "100M"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040085 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040086 limits: {
87 cpu: "500m"
88 memory: "250M"
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040089 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040090 }
91 image: {
92 repository: images.pihole.fullName
93 tag: images.pihole.tag
94 pullPolicy: images.pihole.pullPolicy
95 }
96 }
97 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040098}