Skip to content

Commit

Permalink
allow disable coreDNS addon for KamajiControlPlane
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Klinchenkov authored and Kirill Klinchenkov committed Aug 29, 2024
1 parent cd991bd commit 5e98db2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/apps/kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.9.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/kubernetes/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ metadata:
spec:
dataStoreName: "{{ $etcd }}"
addons:
{{- if not .Values.disabledDNSAddon }}
coreDNS:
dnsServiceIPs:
- 10.95.0.10
{{- end }}
konnectivity: {}
kubelet:
cgroupfs: systemd
Expand Down
7 changes: 6 additions & 1 deletion packages/apps/kubernetes/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"description": "StorageClass used to store user data",
"default": "replicated"
},
"disabledDNSAddon": {
"type": "boolean",
"description": "Is addon KamajiControlPlane.spec.addons.coreDNS disabled",
"default": false
},
"addons": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -79,4 +84,4 @@
}
}
}
}
}
2 changes: 2 additions & 0 deletions packages/apps/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## @param host The hostname used to access the Kubernetes cluster externally (defaults to using the cluster name as a subdomain for the tenant host).
## @param controlPlane.replicas Number of replicas for Kubernetes contorl-plane components
## @param storageClass StorageClass used to store user data
## @param disabledDNSAddon Is addon KamajiControlPlane.spec.addons.coreDNS disabled
##
host: ""
controlPlane:
replicas: 2
storageClass: replicated
disabledDNSAddon: false

## @param nodeGroups [object] nodeGroups configuration
##
Expand Down

0 comments on commit 5e98db2

Please sign in to comment.