mirror of
https://github.com/truenas/charts.git
synced 2026-11-29 23:36:15 +08:00
Publish new changes in catalog
This commit is contained in:
@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
|
||||
annotations:
|
||||
title: MinIO
|
||||
type: application
|
||||
version: 1.7.23
|
||||
version: 1.7.24
|
||||
apiVersion: v2
|
||||
appVersion: '2023-03-13'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
@@ -6,7 +6,7 @@ groups:
|
||||
- name: "Minio Configuration"
|
||||
description: "Configure Minio credentials"
|
||||
- name: "Storage"
|
||||
description: "Configure Storage for Nextcloud"
|
||||
description: "Configure Storage for Minio"
|
||||
- name: "Advanced DNS Settings"
|
||||
description: "Configure DNS settings"
|
||||
- name: "Resource Limits"
|
||||
2
charts/pihole/2.0.0/.helmignore
Normal file
2
charts/pihole/2.0.0/.helmignore
Normal file
@@ -0,0 +1,2 @@
|
||||
# Patterns to ignore when building packages.
|
||||
*.png
|
||||
6
charts/pihole/2.0.0/Chart.lock
Normal file
6
charts/pihole/2.0.0/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.2.9
|
||||
digest: sha256:af1a9a1f87e3e48453c9f25f909f5ebcd7fa6e25162b7b425448ba752bcdbc5c
|
||||
generated: "2024-02-08T16:30:19.001779605+02:00"
|
||||
25
charts/pihole/2.0.0/Chart.yaml
Normal file
25
charts/pihole/2.0.0/Chart.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: pihole
|
||||
description: DNS and Ad-filtering for your network.
|
||||
annotations:
|
||||
title: Pi-hole
|
||||
type: application
|
||||
version: 2.0.0
|
||||
apiVersion: v2
|
||||
appVersion: 2023.11.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
url: https://www.truenas.com/
|
||||
email: dev@ixsystems.com
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.2.9
|
||||
home: https://pi-hole.net/
|
||||
icon: https://media.sys.truenas.net/apps/pihole/icons/icon.png
|
||||
sources:
|
||||
- https://pi-hole.net/
|
||||
- https://github.com/truenas/charts/tree/master/charts/pihole
|
||||
keywords:
|
||||
- networking
|
||||
- dns
|
||||
3
charts/pihole/2.0.0/README.md
Normal file
3
charts/pihole/2.0.0/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Pi-hole
|
||||
|
||||
[Pi-hole](https://pi-hole.net/) is a black hole for Internet advertisements
|
||||
3
charts/pihole/2.0.0/app-readme.md
Normal file
3
charts/pihole/2.0.0/app-readme.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Pi-hole
|
||||
|
||||
[Pi-hole](https://pi-hole.net/) is a black hole for Internet advertisements
|
||||
BIN
charts/pihole/2.0.0/charts/common-1.2.9.tgz
Normal file
BIN
charts/pihole/2.0.0/charts/common-1.2.9.tgz
Normal file
Binary file not shown.
16
charts/pihole/2.0.0/ci/basic-values.yaml
Normal file
16
charts/pihole/2.0.0/ci/basic-values.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
piholeConfig:
|
||||
webPassword: somepassword
|
||||
|
||||
piholeNetwork:
|
||||
webPort: 32000
|
||||
dhcp:
|
||||
enabled: true
|
||||
start: '192.168.1.1'
|
||||
end: '192.168.1.2'
|
||||
gateway: '192.168.1.0'
|
||||
|
||||
piholeStorage:
|
||||
config:
|
||||
type: pvc
|
||||
dnsmasq:
|
||||
type: pvc
|
||||
13
charts/pihole/2.0.0/ci/nodhcp-values.yaml
Normal file
13
charts/pihole/2.0.0/ci/nodhcp-values.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
piholeConfig:
|
||||
webPassword: somepassword
|
||||
|
||||
piholeNetwork:
|
||||
webPort: 32000
|
||||
dhcp:
|
||||
enabled: false
|
||||
|
||||
piholeStorage:
|
||||
config:
|
||||
type: pvc
|
||||
dnsmasq:
|
||||
type: pvc
|
||||
36
charts/pihole/2.0.0/ix_values.yaml
Normal file
36
charts/pihole/2.0.0/ix_values.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
image:
|
||||
pullPolicy: IfNotPresent
|
||||
repository: pihole/pihole
|
||||
tag: 2023.11.0
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4000m
|
||||
memory: 8Gi
|
||||
|
||||
podOptions:
|
||||
dnsConfig:
|
||||
options: []
|
||||
|
||||
piholeConfig:
|
||||
webPassword: ''
|
||||
additionalEnvs: []
|
||||
|
||||
piholeNetwork:
|
||||
webPort: 20489
|
||||
dhcp:
|
||||
enabled: false
|
||||
start: ''
|
||||
end: ''
|
||||
gateway: ''
|
||||
|
||||
piholeStorage:
|
||||
config:
|
||||
type: ixVolume
|
||||
ixVolumeConfig:
|
||||
datasetName: config
|
||||
dnsmasq:
|
||||
type: ixVolume
|
||||
ixVolumeConfig:
|
||||
datasetName: dnsmasq
|
||||
additionalStorages: []
|
||||
24
charts/pihole/2.0.0/metadata.yaml
Normal file
24
charts/pihole/2.0.0/metadata.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
runAsContext:
|
||||
- userName: root
|
||||
groupName: root
|
||||
gid: 0
|
||||
uid: 0
|
||||
description: Pi-hole runs as root user.
|
||||
capabilities:
|
||||
- name: CHOWN
|
||||
description: Pi-hole is able to chown files.
|
||||
- name: FOWNER
|
||||
description: Pi-hole is able to bypass permission checks for it's sub-processes.
|
||||
- name: DAC_OVERRIDE
|
||||
description: Pi-hole is able to bypass permission checks.
|
||||
- name: SETGID
|
||||
description: Pi-hole is able to set group ID for it's sub-processes.
|
||||
- name: SETUID
|
||||
description: Pi-hole is able to set user ID for it's sub-processes.
|
||||
- name: SETFCAP
|
||||
description: Pi-hole is able to set file capabilities.
|
||||
- name: NET_ADMIN
|
||||
description: Pi-hole is able to perform various network-related operations.
|
||||
- name: KILL
|
||||
description: Pi-hole is able to kill processes.
|
||||
hostMounts: []
|
||||
95
charts/pihole/2.0.0/migrations/migrate
Executable file
95
charts/pihole/2.0.0/migrations/migrate
Executable file
@@ -0,0 +1,95 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
def migrate_volume(volume):
|
||||
return {
|
||||
'type': 'hostPath',
|
||||
'hostPathConfig': {
|
||||
'hostPath': volume['hostPath']
|
||||
},
|
||||
} if volume.get('hostPathEnabled', False) else {
|
||||
'type': 'ixVolume',
|
||||
'ixVolumeConfig': {
|
||||
'datasetName': volume['datasetName'],
|
||||
},
|
||||
}
|
||||
|
||||
def migrate_common_lib(values):
|
||||
delete_keys = [
|
||||
'enableResourceLimits', 'memLimit', 'cpuLimit', 'dnsConfig',
|
||||
'web_port', 'environmentVariables', 'timezone', 'password',
|
||||
'extraAppVolumeMounts', 'appVolumeMounts', 'dhcp', 'dhcp_start',
|
||||
'dhcp_end', 'dhcp_gateway', 'ownerUID', 'ownerGID',
|
||||
]
|
||||
|
||||
values.update({
|
||||
# Migrate Network
|
||||
'piholeNetwork': {
|
||||
'webPort': values['web_port'],
|
||||
'dhcp': {
|
||||
'enabled': values['dhcp'],
|
||||
'start': values.get('dhcp_start', ''),
|
||||
'end': values.get('dhcp_end', ''),
|
||||
'gateway': values.get('dhcp_gateway', ''),
|
||||
}
|
||||
},
|
||||
# Migrate Resources
|
||||
'resources': {
|
||||
'limits': {
|
||||
'cpu': values.get('cpuLimit', '4000m'),
|
||||
'memory': values.get('memLimit', '8Gi'),
|
||||
}
|
||||
},
|
||||
# Migrate DNS
|
||||
'podOptions': {
|
||||
'dnsConfig': {
|
||||
'options': [
|
||||
{'name': opt['name'], 'value': opt['value']}
|
||||
for opt in values.get('dnsConfig', {}).get('options', [])
|
||||
]
|
||||
}
|
||||
},
|
||||
# Migrate Config
|
||||
'TZ': values['timezone'],
|
||||
'piholeConfig': {
|
||||
'webPassword': values['password'],
|
||||
'additionalEnvs': values.get('environmentVariables', []),
|
||||
},
|
||||
# Migrate Storage
|
||||
'piholeStorage': {
|
||||
'config': migrate_volume(values['appVolumeMounts']['config']),
|
||||
'cache': migrate_volume(values['appVolumeMounts']['dnsmasq']),
|
||||
'additionalStorages': [
|
||||
{
|
||||
'type': 'hostPath',
|
||||
'hostPathConfig': {'hostPath': e['hostPath']},
|
||||
'mountPath': e['mountPath'],
|
||||
'readOnly': e.get('readOnly', False),
|
||||
}
|
||||
for e in values.get('extraAppVolumeMounts', [])
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
for k in delete_keys:
|
||||
values.pop(k, None)
|
||||
|
||||
return values
|
||||
|
||||
def migrate(values):
|
||||
# If this missing, we have already migrated
|
||||
if not 'appVolumeMounts' in values.keys():
|
||||
return values
|
||||
|
||||
return migrate_common_lib(values)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) != 2:
|
||||
exit(1)
|
||||
|
||||
if os.path.exists(sys.argv[1]):
|
||||
with open(sys.argv[1], 'r') as f:
|
||||
print(json.dumps(migrate(json.loads(f.read()))))
|
||||
499
charts/pihole/2.0.0/questions.yaml
Normal file
499
charts/pihole/2.0.0/questions.yaml
Normal file
@@ -0,0 +1,499 @@
|
||||
groups:
|
||||
- name: Pi-Hole Configuration
|
||||
description: Configure Pi-Hole
|
||||
- name: Advanced Pod Configuration
|
||||
description: Configure Advanced Pod Options for Pi-Hole
|
||||
- name: Network Configuration
|
||||
description: Configure Network for Pi-Hole
|
||||
- name: Storage Configuration
|
||||
description: Configure Storage for Pi-Hole
|
||||
- name: Resources Configuration
|
||||
description: Configure Resources for Pi-Hole
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
protocols:
|
||||
- "$kubernetes-resource_configmap_portal_protocol"
|
||||
host:
|
||||
- "$kubernetes-resource_configmap_portal_host"
|
||||
ports:
|
||||
- "$kubernetes-resource_configmap_portal_port"
|
||||
path: "$kubernetes-resource_configmap_portal_path"
|
||||
|
||||
questions:
|
||||
- variable: TZ
|
||||
group: Pi-Hole Configuration
|
||||
label: Timezone
|
||||
schema:
|
||||
type: string
|
||||
default: Etc/UTC
|
||||
required: true
|
||||
$ref:
|
||||
- definitions/timezone
|
||||
|
||||
- variable: piholeConfig
|
||||
label: ""
|
||||
group: Pi-Hole Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: webPassword
|
||||
label: Web Password
|
||||
description: The password for the Pi-Hole Web UI.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
private: true
|
||||
- variable: additionalEnvs
|
||||
label: Additional Environment Variables
|
||||
description: Configure additional environment variables for Pi-Hole.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: env
|
||||
label: Environment Variable
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: Name
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: Value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: podOptions
|
||||
label: ""
|
||||
group: Advanced Pod Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: dnsConfig
|
||||
label: Advanced DNS Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: options
|
||||
label: DNS Options
|
||||
schema:
|
||||
type: list
|
||||
items:
|
||||
- variable: optionsEntry
|
||||
label: DNS Option Entry
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: Option Name
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: Option Value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: piholeNetwork
|
||||
label: ""
|
||||
group: Network Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: webPort
|
||||
label: Web Port
|
||||
description: The port for the Pi-Hole Web UI.
|
||||
schema:
|
||||
type: int
|
||||
default: 20720
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: dhcp
|
||||
label: DHCP Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: enabled
|
||||
label: Enable DHCP
|
||||
description: Enable DHCP for Pi-Hole.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: start
|
||||
label: DHCP Start
|
||||
description: The start of the DHCP range.
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: false
|
||||
show_if: [["enabled", "=", true]]
|
||||
required: true
|
||||
- variable: end
|
||||
label: DHCP End
|
||||
description: The end of the DHCP range.
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: false
|
||||
show_if: [["enabled", "=", true]]
|
||||
required: true
|
||||
- variable: gateway
|
||||
label: DHCP Gateway
|
||||
description: The gateway for the DHCP range.
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: false
|
||||
show_if: [["enabled", "=", true]]
|
||||
required: true
|
||||
|
||||
- variable: piholeStorage
|
||||
label: ""
|
||||
group: Storage Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: config
|
||||
label: Pi-Hole Config Storage
|
||||
description: The path to store Pi-Hole Configuration.
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
immutable: true
|
||||
default: "ixVolume"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: ixVolumeConfig
|
||||
label: ixVolume Configuration
|
||||
description: The configuration for the ixVolume dataset.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
description: The name of the dataset to use for storage.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
immutable: true
|
||||
hidden: true
|
||||
default: "config"
|
||||
- variable: aclEntries
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
- variable: hostPathConfig
|
||||
label: Host Path Config
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: acl
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
$ref:
|
||||
- "normalize/acl"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
description: The host path to use for storage.
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
required: true
|
||||
- variable: dnsmasq
|
||||
label: Pi-Hole DNSmasq Storage
|
||||
description: The path to store Pi-Hole DNSmasq.
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
immutable: true
|
||||
default: "ixVolume"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: ixVolumeConfig
|
||||
label: ixVolume Configuration
|
||||
description: The configuration for the ixVolume dataset.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
description: The name of the dataset to use for storage.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
immutable: true
|
||||
hidden: true
|
||||
default: "dnsmasq"
|
||||
- variable: aclEntries
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
- variable: hostPathConfig
|
||||
label: Host Path Config
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: acl
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
$ref:
|
||||
- "normalize/acl"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
description: The host path to use for storage.
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
required: true
|
||||
|
||||
- variable: additionalStorages
|
||||
label: Additional Storage
|
||||
description: Additional storage for Pi-Hole.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: storageEntry
|
||||
label: Storage Entry
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.</br>
|
||||
SMB Share: Is a SMB share that is mounted to a persistent volume claim.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "ixVolume"
|
||||
immutable: true
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- value: "smb-pv-pvc"
|
||||
description: SMB Share (Mounts a persistent volume claim to a SMB share)
|
||||
- variable: readOnly
|
||||
label: Read Only
|
||||
description: Mount the volume as read only.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: mountPath
|
||||
label: Mount Path
|
||||
description: The path inside the container to mount the storage.
|
||||
schema:
|
||||
type: path
|
||||
required: true
|
||||
- variable: hostPathConfig
|
||||
label: Host Path Config
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: acl
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
$ref:
|
||||
- "normalize/acl"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
description: The host path to use for storage.
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
required: true
|
||||
- variable: ixVolumeConfig
|
||||
label: ixVolume Configuration
|
||||
description: The configuration for the ixVolume dataset.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
attrs:
|
||||
- variable: aclEnable
|
||||
label: Enable ACL
|
||||
description: Enable ACL for the dataset.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
description: The name of the dataset to use for storage.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
immutable: true
|
||||
default: "storage_entry"
|
||||
- variable: aclEntries
|
||||
label: ACL Configuration
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["aclEnable", "=", true]]
|
||||
attrs: []
|
||||
- variable: smbConfig
|
||||
label: SMB Share Configuration
|
||||
description: The configuration for the SMB Share.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
attrs:
|
||||
- variable: server
|
||||
label: Server
|
||||
description: The server for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: share
|
||||
label: Share
|
||||
description: The share name for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: domain
|
||||
label: Domain (Optional)
|
||||
description: The domain for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
- variable: username
|
||||
label: Username
|
||||
description: The username for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: password
|
||||
label: Password
|
||||
description: The password for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
private: true
|
||||
- variable: size
|
||||
label: Size (in Gi)
|
||||
description: The size of the volume quota.
|
||||
schema:
|
||||
type: int
|
||||
required: true
|
||||
min: 1
|
||||
default: 1
|
||||
|
||||
- variable: resources
|
||||
group: Resources Configuration
|
||||
label: ""
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: limits
|
||||
label: Limits
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: cpu
|
||||
label: CPU
|
||||
description: CPU limit for Pi-Hole.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 6
|
||||
valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
|
||||
valid_chars_error: |
|
||||
Valid CPU limit formats are</br>
|
||||
- Plain Integer - eg. 1</br>
|
||||
- Float - eg. 0.5</br>
|
||||
- Milicpu - eg. 500m
|
||||
default: "4000m"
|
||||
required: true
|
||||
- variable: memory
|
||||
label: Memory
|
||||
description: Memory limit for Pi-Hole.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 12
|
||||
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
|
||||
valid_chars_error: |
|
||||
Valid Memory limit formats are</br>
|
||||
- Suffixed with E/P/T/G/M/K - eg. 1G</br>
|
||||
- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
|
||||
- Plain Integer in bytes - eg. 1024</br>
|
||||
- Exponent - eg. 134e6
|
||||
default: "8Gi"
|
||||
required: true
|
||||
35
charts/pihole/2.0.0/templates/_migration.tpl
Normal file
35
charts/pihole/2.0.0/templates/_migration.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
{{- define "pihole.get-versions" -}}
|
||||
{{- $oldChartVersion := "" -}}
|
||||
{{- $newChartVersion := "" -}}
|
||||
|
||||
{{/* Safely access the context, so it wont block CI */}}
|
||||
{{- if hasKey .Values.global "ixChartContext" -}}
|
||||
{{- if .Values.global.ixChartContext.upgradeMetadata -}}
|
||||
|
||||
{{- $oldChartVersion = .Values.global.ixChartContext.upgradeMetadata.oldChartVersion -}}
|
||||
{{- $newChartVersion = .Values.global.ixChartContext.upgradeMetadata.newChartVersion -}}
|
||||
{{- if and (not $oldChartVersion) (not $newChartVersion) -}}
|
||||
{{- fail "Upgrade Metadata is missing. Cannot proceed" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- toYaml (dict "old" $oldChartVersion "new" $newChartVersion) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "pihole.migration" -}}
|
||||
{{- $versions := (fromYaml (include "pihole.get-versions" $)) -}}
|
||||
{{- if and $versions.old $versions.new -}}
|
||||
{{- $oldV := semver $versions.old -}}
|
||||
{{- $newV := semver $versions.new -}}
|
||||
|
||||
{{/* If new is v2.x.x */}}
|
||||
{{- if eq ($newV.Major | int) 2 -}}
|
||||
{{/* And old is v1.x.x, but lower than .25 */}}
|
||||
{{- if and (eq $oldV.Major 1) (lt ($oldV.Patch | int) 25) -}}
|
||||
{{/* Block the upgrade */}}
|
||||
{{- fail "Migration to 2.x.x is only allowed from 1.0.25 or higher" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
33
charts/pihole/2.0.0/templates/_persistence.tpl
Normal file
33
charts/pihole/2.0.0/templates/_persistence.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- define "pihole.persistence" -}}
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.piholeStorage.config) | nindent 4 }}
|
||||
targetSelector:
|
||||
pihole:
|
||||
pihole:
|
||||
mountPath: /etc/pihole
|
||||
dnsmasq:
|
||||
enabled: true
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.piholeStorage.dnsmasq) | nindent 4 }}
|
||||
targetSelector:
|
||||
pihole:
|
||||
pihole:
|
||||
mountPath: /etc/dnsmasq.d
|
||||
tmp:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
targetSelector:
|
||||
pihole:
|
||||
pihole:
|
||||
mountPath: /tmp
|
||||
{{- range $idx, $storage := .Values.piholeStorage.additionalStorages }}
|
||||
{{ printf "pihole-%v:" (int $idx) }}
|
||||
enabled: true
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
||||
targetSelector:
|
||||
pihole:
|
||||
pihole:
|
||||
mountPath: {{ $storage.mountPath }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
61
charts/pihole/2.0.0/templates/_pihole.tpl
Normal file
61
charts/pihole/2.0.0/templates/_pihole.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{{- define "pihole.workload" -}}
|
||||
workload:
|
||||
pihole:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: true
|
||||
containers:
|
||||
pihole:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
capabilities:
|
||||
add:
|
||||
- NET_ADMIN
|
||||
- CHOWN
|
||||
- DAC_OVERRIDE
|
||||
- FOWNER
|
||||
- SETGID
|
||||
- SETUID
|
||||
- SETFCAP
|
||||
- KILL
|
||||
env:
|
||||
WEB_PORT: {{ .Values.piholeNetwork.webPort }}
|
||||
WEBPASSWORD: {{ .Values.piholeConfig.webPassword }}
|
||||
{{- if .Values.piholeNetwork.dhcp.enabled }}
|
||||
DHCP_ACTIVE: "true"
|
||||
DHCP_START: {{ .Values.piholeNetwork.dhcp.start }}
|
||||
DHCP_END: {{ .Values.piholeNetwork.dhcp.end }}
|
||||
DHCP_ROUTER: {{ .Values.piholeNetwork.dhcp.gateway }}
|
||||
{{- end }}
|
||||
{{ with .Values.piholeConfig.additionalEnvs }}
|
||||
envList:
|
||||
{{ range $env := . }}
|
||||
- name: {{ $env.name }}
|
||||
value: {{ $env.value }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /admin/login.php
|
||||
port: {{ .Values.piholeNetwork.webPort }}
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /admin/login.php
|
||||
port: {{ .Values.piholeNetwork.webPort }}
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /admin/login.php
|
||||
port: {{ .Values.piholeNetwork.webPort }}
|
||||
{{- end -}}
|
||||
12
charts/pihole/2.0.0/templates/_portal.tpl
Normal file
12
charts/pihole/2.0.0/templates/_portal.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- define "pihole.portal" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: portal
|
||||
data:
|
||||
port: {{ .Values.piholeNetwork.webPort | quote }}
|
||||
path: "/admin/"
|
||||
protocol: "http"
|
||||
host: $node_ip
|
||||
{{- end -}}
|
||||
33
charts/pihole/2.0.0/templates/_service.tpl
Normal file
33
charts/pihole/2.0.0/templates/_service.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- define "pihole.service" -}}
|
||||
service:
|
||||
pihole:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: ClusterIP
|
||||
targetSelector: pihole
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.piholeNetwork.webPort }}
|
||||
targetSelector: pihole
|
||||
dns-udp:
|
||||
enabled: true
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: udp
|
||||
targetSelector: pihole
|
||||
dns-tcp:
|
||||
enabled: true
|
||||
port: 53
|
||||
targetPort: 53
|
||||
targetSelector: pihole
|
||||
{{- if .Values.piholeNetwork.dhcpEnabled }}
|
||||
dhcp:
|
||||
enabled: true
|
||||
port: 67
|
||||
targetPort: 67
|
||||
protocol: udp
|
||||
targetSelector: pihole
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
13
charts/pihole/2.0.0/templates/common.yaml
Normal file
13
charts/pihole/2.0.0/templates/common.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{- include "pihole.migration" $ -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "pihole.workload" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "pihole.service" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "pihole.persistence" $ | fromYaml) -}}
|
||||
|
||||
{{/* Create the configmap for portal manually*/}}
|
||||
{{- include "pihole.portal" $ -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
4
charts/pihole/2.0.0/to_keep_versions.md
Normal file
4
charts/pihole/2.0.0/to_keep_versions.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# 1.0.25
|
||||
|
||||
This version is kept because it contains a fix that is needed for migration to v2.x.x
|
||||
It should be safe to remove few months after v2.x.x is released.
|
||||
@@ -3,7 +3,7 @@ description: PiGallery2 is a fast directory-first photo gallery website, with ri
|
||||
annotations:
|
||||
title: PiGallery2
|
||||
type: application
|
||||
version: 1.2.3
|
||||
version: 1.2.4
|
||||
apiVersion: v2
|
||||
appVersion: 2.0.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
@@ -288,6 +288,12 @@ questions:
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: readOnly
|
||||
label: Read Only
|
||||
description: Mount the volume as read only.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: ixVolumeConfig
|
||||
label: ixVolume Configuration
|
||||
description: The configuration for the ixVolume dataset.
|
||||
1
community/pigallery2/1.2.4/templates/NOTES.txt
Normal file
1
community/pigallery2/1.2.4/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
Reference in New Issue
Block a user