mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-06 12:03:39 +09:00
Rewrite resourcesPreset values in every apps/* and extras/* chart from the legacy flat names to the new instance-type form, using the 1:1 mapping: nano -> t1.nano micro -> t1.micro small -> t1.small medium -> c1.small large -> c1.medium xlarge -> c1.large 2xlarge -> c1.xlarge Each affected values.yaml carries the canonical 47-value enum (40 instance-type names plus 7 legacy aliases) so the schema accepts both forms during the deprecation window. cozyvalues-gen regenerates the matching api/apps/v1alpha1/*/types.go kubebuilder enum and defaults, the chart values.schema.json, the README parameter table, and the ApplicationDefinition openAPISchema in packages/system/*-rd/cozyrds. Three hardcoded legacy literals in chart templates migrated: - packages/apps/harbor/templates/harbor.yaml:121 (portal) - packages/apps/opensearch/templates/opensearch.yaml:43 (dashboards) - packages/system/keycloak/templates/sts.yaml:115 (heap fallback) packages/apps/foundationdb/Makefile gains the missing hack/update-crd.sh call. Without it, every regen left foundationdb-rd cozyrds stale and new FoundationDB app CRs through cozystack-api were rejected at validation for any non-legacy resourcesPreset value. Every default-rendered chart produces identical CPU and memory to the value applied before the rename, courtesy of the legacy alias table in cozy-lib and the 1:1 default mapping. Co-authored-by: Matthieu ROBIN <matthieu@hidora.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
275 lines
10 KiB
YAML
275 lines
10 KiB
YAML
##
|
|
## @section Common Parameters
|
|
##
|
|
|
|
## @param {string} storageClass - StorageClass used to store the data.
|
|
storageClass: replicated
|
|
|
|
##
|
|
## @section Application-specific Parameters
|
|
##
|
|
|
|
## @enum {string} ResourcesPreset - Default sizing preset.
|
|
## @value t1.nano
|
|
## @value t1.micro
|
|
## @value t1.small
|
|
## @value t1.medium
|
|
## @value t1.large
|
|
## @value t1.xlarge
|
|
## @value t1.2xlarge
|
|
## @value t1.4xlarge
|
|
## @value c1.nano
|
|
## @value c1.micro
|
|
## @value c1.small
|
|
## @value c1.medium
|
|
## @value c1.large
|
|
## @value c1.xlarge
|
|
## @value c1.2xlarge
|
|
## @value c1.4xlarge
|
|
## @value s1.nano
|
|
## @value s1.micro
|
|
## @value s1.small
|
|
## @value s1.medium
|
|
## @value s1.large
|
|
## @value s1.xlarge
|
|
## @value s1.2xlarge
|
|
## @value s1.4xlarge
|
|
## @value u1.nano
|
|
## @value u1.micro
|
|
## @value u1.small
|
|
## @value u1.medium
|
|
## @value u1.large
|
|
## @value u1.xlarge
|
|
## @value u1.2xlarge
|
|
## @value u1.4xlarge
|
|
## @value m1.nano
|
|
## @value m1.micro
|
|
## @value m1.small
|
|
## @value m1.medium
|
|
## @value m1.large
|
|
## @value m1.xlarge
|
|
## @value m1.2xlarge
|
|
## @value m1.4xlarge
|
|
## @value nano
|
|
## @value micro
|
|
## @value small
|
|
## @value medium
|
|
## @value large
|
|
## @value xlarge
|
|
## @value 2xlarge
|
|
|
|
## @typedef {struct} Resources - Explicit CPU and memory configuration for a node or component.
|
|
## @field {quantity} [cpu] - CPU available.
|
|
## @field {quantity} [memory] - Memory (RAM) available.
|
|
|
|
## @typedef {struct} GPU - GPU configuration.
|
|
## @field {string} name - Name of GPU, such as "nvidia.com/AD102GL_L40S".
|
|
|
|
## @typedef {struct} Kubelet - Kubelet resource reservations for worker nodes.
|
|
## @field {string} [systemReservedMemory] - Memory reserved for host OS. Auto-computed from instanceType if empty.
|
|
## @field {string} [kubeReservedMemory] - Memory reserved for kubelet and container runtime. Auto-computed from instanceType if empty.
|
|
## @field {string} [systemReservedCpu] - CPU reserved for host OS. Auto-computed from instanceType if empty.
|
|
## @field {string} [kubeReservedCpu] - CPU reserved for kubelet and container runtime. Auto-computed from instanceType if empty.
|
|
## @field {string} [evictionHardMemory]="7%" - Hard eviction threshold for memory (absolute like 200Mi or percentage like 7%).
|
|
## @field {string} [evictionSoftMemory]="10%" - Soft eviction threshold for memory (absolute like 1Gi or percentage like 10%).
|
|
|
|
## @typedef {struct} NodeGroup - Worker node group configuration.
|
|
## @field {int} minReplicas=0 - Minimum number of replicas.
|
|
## @field {int} maxReplicas=10 - Maximum number of replicas.
|
|
## @field {string} instanceType="u1.medium" - Virtual machine instance type.
|
|
## @field {quantity} diskSize="20Gi" - Persistent disk size for kubelet and containerd data.
|
|
## @field {string} [storageClass] - StorageClass for worker node persistent disks. When empty, uses the management cluster default StorageClass (the one annotated storageclass.kubernetes.io/is-default-class: true).
|
|
## @field {[]string} roles - List of node roles.
|
|
## @field {Resources} resources - CPU and memory resources for each worker node.
|
|
## @field {[]GPU} gpus - List of GPUs to attach (NVIDIA driver requires at least 4 GiB RAM).
|
|
## @field {Kubelet} [kubelet] - Kubelet resource reservations for this node group.
|
|
|
|
## @param {map[string]NodeGroup} nodeGroups - Worker nodes configuration map.
|
|
nodeGroups:
|
|
md0:
|
|
minReplicas: 0
|
|
maxReplicas: 10
|
|
instanceType: "u1.medium"
|
|
diskSize: 20Gi
|
|
storageClass: ""
|
|
roles:
|
|
- ingress-nginx
|
|
resources: {}
|
|
gpus: []
|
|
kubelet: {}
|
|
|
|
##
|
|
## @enum {string} Version
|
|
## @value v1.35
|
|
## @value v1.34
|
|
## @value v1.33
|
|
## @value v1.32
|
|
## @value v1.31
|
|
## @value v1.30
|
|
|
|
## @param {Version} version - Kubernetes major.minor version to deploy
|
|
version: "v1.35"
|
|
|
|
|
|
## @param {string} host - External hostname for Kubernetes cluster. Defaults to `<cluster-name>.<tenant-host>` if empty.
|
|
host: ""
|
|
|
|
##
|
|
## @section Cluster Addons
|
|
##
|
|
|
|
## @typedef {struct} CertManagerAddon - cert-manager addon.
|
|
## @field {bool} enabled - Enable cert-manager.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} CiliumAddon - Cilium CNI plugin.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} GatewayAPIAddon - Gateway API addon.
|
|
## @field {bool} enabled - Enable Gateway API.
|
|
|
|
## @enum {string} IngressNginxExposeMethod - Method to expose the controller
|
|
## @value Proxied
|
|
## @value LoadBalancer
|
|
|
|
## @typedef {struct} IngressNginxAddon - Ingress-NGINX controller.
|
|
## @field {bool} enabled - Enable the controller (requires nodes labeled `ingress-nginx`).
|
|
## @field {IngressNginxExposeMethod} exposeMethod - Method to expose the controller. Allowed values: `Proxied`, `LoadBalancer`.
|
|
## @field {[]string} hosts - Domains routed to this tenant cluster when `exposeMethod` is `Proxied`.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} GPUOperatorAddon - NVIDIA GPU Operator.
|
|
## @field {bool} enabled - Enable GPU Operator.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} FluxCDAddon - FluxCD GitOps operator.
|
|
## @field {bool} enabled - Enable FluxCD.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} HAMiAddon - HAMi GPU virtualization middleware.
|
|
## @field {bool} enabled - Enable HAMi (requires GPU Operator).
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} MonitoringAgentsAddon - Monitoring agents (Fluent Bit, VMAgents).
|
|
## @field {bool} enabled - Enable monitoring agents.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} VerticalPodAutoscalerAddon - Vertical Pod Autoscaler.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} VeleroAddon - Velero backup and recovery addon.
|
|
## @field {bool} enabled - Enable Velero.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} CoreDNSAddon - CoreDNS addon.
|
|
## @field {object} valuesOverride - Custom Helm values overrides.
|
|
|
|
## @typedef {struct} OuroborosAddon - Hairpin-NAT fix for ingress-nginx with PROXY-protocol. See cozystack/website docs/networking/hairpin-proxy-protocol for the operator guide.
|
|
## @field {bool} enabled - Enable ouroboros. Requires addons.ingressNginx.enabled (chart-render fail otherwise). Only useful when PROXY-protocol is wired on the tenant ingress-nginx via valuesOverride.
|
|
## @field {object} valuesOverride - Custom Helm values overrides. Operator-key wins over cozystack defaults.
|
|
|
|
## @typedef {struct} Addons - Cluster addons configuration.
|
|
## @field {CertManagerAddon} certManager - Cert-manager addon.
|
|
## @field {CiliumAddon} cilium - Cilium CNI plugin.
|
|
## @field {GatewayAPIAddon} gatewayAPI - Gateway API addon.
|
|
## @field {IngressNginxAddon} ingressNginx - Ingress-NGINX controller.
|
|
## @field {GPUOperatorAddon} gpuOperator - NVIDIA GPU Operator.
|
|
## @field {HAMiAddon} hami - HAMi GPU virtualization middleware.
|
|
## @field {FluxCDAddon} fluxcd - FluxCD GitOps operator.
|
|
## @field {MonitoringAgentsAddon} monitoringAgents - Monitoring agents.
|
|
## @field {VerticalPodAutoscalerAddon} verticalPodAutoscaler - Vertical Pod Autoscaler.
|
|
## @field {VeleroAddon} velero - Velero backup/restore addon.
|
|
## @field {CoreDNSAddon} coredns - CoreDNS addon.
|
|
## @field {OuroborosAddon} ouroboros - Hairpin-NAT fix for ingress-nginx with PROXY-protocol.
|
|
|
|
## @param {Addons} addons - Cluster addons configuration.
|
|
addons:
|
|
certManager:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
cilium:
|
|
valuesOverride: {}
|
|
gatewayAPI:
|
|
enabled: false
|
|
ingressNginx:
|
|
enabled: false
|
|
exposeMethod: Proxied
|
|
hosts: []
|
|
valuesOverride: {}
|
|
gpuOperator:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
hami:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
fluxcd:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
monitoringAgents:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
verticalPodAutoscaler:
|
|
valuesOverride: {}
|
|
velero:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
coredns:
|
|
valuesOverride: {}
|
|
ouroboros:
|
|
enabled: false
|
|
valuesOverride: {}
|
|
|
|
##
|
|
## @section Kubernetes Control Plane Configuration
|
|
##
|
|
|
|
## @typedef {struct} APIServer - API Server configuration.
|
|
## @field {Resources} resources - CPU and memory resources for API Server.
|
|
## @field {ResourcesPreset} resourcesPreset="c1.medium" - Preset if `resources` omitted.
|
|
|
|
## @typedef {struct} ControllerManager - Controller Manager configuration.
|
|
## @field {Resources} resources - CPU and memory resources for Controller Manager.
|
|
## @field {ResourcesPreset} resourcesPreset="t1.micro" - Preset if `resources` omitted.
|
|
|
|
## @typedef {struct} Scheduler - Scheduler configuration.
|
|
## @field {Resources} resources - CPU and memory resources for Scheduler.
|
|
## @field {ResourcesPreset} resourcesPreset="t1.micro" - Preset if `resources` omitted.
|
|
|
|
## @typedef {struct} KonnectivityServer - Konnectivity Server configuration.
|
|
## @field {Resources} resources - CPU and memory resources for Konnectivity.
|
|
## @field {ResourcesPreset} resourcesPreset="t1.micro" - Preset if `resources` omitted.
|
|
|
|
## @typedef {struct} Konnectivity - Konnectivity configuration.
|
|
## @field {KonnectivityServer} server - Konnectivity Server configuration.
|
|
|
|
## @typedef {struct} ControlPlane - Kubernetes control plane configuration.
|
|
## @field {int} replicas=2 - Number of control-plane replicas.
|
|
## @field {APIServer} apiServer - API Server configuration.
|
|
## @field {ControllerManager} controllerManager - Controller Manager configuration.
|
|
## @field {Scheduler} scheduler - Scheduler configuration.
|
|
## @field {Konnectivity} konnectivity - Konnectivity configuration.
|
|
|
|
## @param {ControlPlane} controlPlane - Kubernetes control-plane configuration.
|
|
controlPlane:
|
|
replicas: 2
|
|
apiServer:
|
|
resources: {}
|
|
resourcesPreset: "c1.medium"
|
|
controllerManager:
|
|
resources: {}
|
|
resourcesPreset: "t1.micro"
|
|
scheduler:
|
|
resources: {}
|
|
resourcesPreset: "t1.micro"
|
|
konnectivity:
|
|
server:
|
|
resources: {}
|
|
resourcesPreset: "t1.micro"
|
|
|
|
## @typedef {struct} Images - Optional image overrides for chart-internal helpers.
|
|
## @field {string} [waitForKubeconfig] - Image used by the wait-for-kubeconfig init container. Empty falls back to images/busybox.tag.
|
|
|
|
## @param {Images} images - Optional image overrides for air-gapped or rate-limited registries.
|
|
images:
|
|
waitForKubeconfig: ""
|