DodoApp: Support dev virtual machines
Change-Id: Ib7641adb5be477bdde7cd9a06df4b45aa65a1c01
diff --git a/core/installer/values-tmpl/pihole.cue b/core/installer/values-tmpl/pihole.cue
index 59cab5d..01a3ca1 100644
--- a/core/installer/values-tmpl/pihole.cue
+++ b/core/installer/values-tmpl/pihole.cue
@@ -2,6 +2,7 @@
network: #Network @name(Network)
subdomain: string @name(Subdomain)
auth: #Auth @name(Authentication)
+ storageSize: string
}
_domain: "\(input.subdomain).\(input.network.domain)"
@@ -33,83 +34,87 @@
_serviceWebPort: 80
-ingress: {
- pihole: {
- auth: input.auth
- network: input.network
- subdomain: input.subdomain
- service: {
- name: "pihole-web"
- port: number: _serviceWebPort
+out: {
+ ingress: {
+ pihole: {
+ auth: input.auth
+ network: input.network
+ subdomain: input.subdomain
+ service: {
+ name: "pihole-web"
+ port: number: _serviceWebPort
+ }
}
}
-}
-images: {
- pihole: {
- repository: "pihole"
- name: "pihole"
- tag: "v5.8.1"
- pullPolicy: "IfNotPresent"
+ images: {
+ pihole: {
+ repository: "pihole"
+ name: "pihole"
+ tag: "v5.8.1"
+ pullPolicy: "IfNotPresent"
+ }
}
-}
-charts: {
- pihole: {
- kind: "GitRepository"
- address: "https://code.v1.dodo.cloud/helm-charts"
- branch: "main"
- path: "charts/pihole"
+ charts: {
+ pihole: {
+ kind: "GitRepository"
+ address: "https://code.v1.dodo.cloud/helm-charts"
+ branch: "main"
+ path: "charts/pihole"
+ }
}
-}
-helm: {
- pihole: {
- chart: charts.pihole
- info: "Installing Pi-hole server"
- values: {
- fullnameOverride: "pihole"
- persistentVolumeClaim: { // TODO(gio): create volume separately as a dependency
- enabled: true
- size: "5Gi"
- }
- admin: {
- enabled: false
- }
- ingress: {
- enabled: false
- }
- serviceDhcp: {
- enabled: false
- }
- serviceDns: {
- type: "ClusterIP"
- }
- serviceWeb: {
- type: "ClusterIP"
- http: {
+ volumes: data: size: input.storageSize
+
+ helm: {
+ pihole: {
+ chart: charts.pihole
+ info: "Installing Pi-hole server"
+ values: {
+ fullnameOverride: "pihole"
+ persistentVolumeClaim: {
enabled: true
- port: _serviceWebPort
+ existingClaim: volumes.data.name
}
- https: {
+ admin: {
enabled: false
}
- }
- virtualHost: _domain
- resources: {
- requests: {
- cpu: "250m"
- memory: "100M"
+ ingress: {
+ enabled: false
}
- limits: {
- cpu: "500m"
- memory: "250M"
+ serviceDhcp: {
+ enabled: false
}
- }
- image: {
- repository: images.pihole.fullName
- tag: images.pihole.tag
- pullPolicy: images.pihole.pullPolicy
+ serviceDns: {
+ type: "ClusterIP"
+ }
+ serviceWeb: {
+ type: "ClusterIP"
+ http: {
+ enabled: true
+ port: _serviceWebPort
+ }
+ https: {
+ enabled: false
+ }
+ }
+ virtualHost: _domain
+ resources: {
+ requests: {
+ cpu: "250m"
+ memory: "100M"
+ }
+ limits: {
+ cpu: "500m"
+ memory: "250M"
+ }
+ }
+ image: {
+ repository: images.pihole.fullName
+ tag: images.pihole.tag
+ pullPolicy: images.pihole.pullPolicy
+ }
}
}
}