-
|
I have these additions to the base config: # talos/patches/controller/volume.yaml - created this file
apiVersion: v1alpha1
kind: UserVolumeConfig
name: user-volume
provisioning:
diskSelector:
match: "!system_disk"
maxSize: 5GiBcontrolPlane:
patches:
- "@./patches/controller/admission-controller-patch.yaml"
- "@./patches/controller/cluster.yaml"
- "@./patches/controller/volume.yaml" # added this new lineThen, I am running: > task talos:generate-config
> task talos:apply-node IP=192.168.70.1 MODE=auto
task: [talos:apply-node] talhelper gencommand apply --node 192.168.70.1 --extra-flags '--mode=auto' | bash
Applied configuration without a reboot
> talosctl get volumestatus u-user-volume --nodes 192.168.70.1
NODE NAMESPACE TYPE ID VERSION TYPE PHASE LOCATION SIZE
1 error occurred:
* rpc error: code = NotFound desc = resource VolumeStatuses.block.talos.dev(runtime/u-user-volume@undefined) doesn't existHowever, if I perform a patch, it seems to work: > talosctl --nodes 192.168.70.1 patch mc --patch @talos/patches/controller/volume.yaml
patched MachineConfigs.config.talos.dev/v1alpha1 at the node 192.168.70.1
Applied configuration without a reboot
> talosctl get volumestatus u-user-volume --nodes 192.168.70.1
NODE NAMESPACE TYPE ID VERSION TYPE PHASE LOCATION SIZE
192.168.70.1 runtime VolumeStatus u-user-volume 2 partition ready /dev/sda1 5.4 GBIdeally, I would be able to get it working within talconfig.yaml so that my changes are not overridden every time I regenerate the config. I am curious what I have done wrongly, please let me know. Edit: talos is v1.11.2, k8s is v1.34.1 |
Beta Was this translation helpful? Give feedback.
Answered by
jee-ee
Oct 14, 2025
Replies: 1 comment
-
|
Silly me - I was able to fix it by just defining the userVolumes within |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jee-ee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Silly me - I was able to fix it by just defining the userVolumes within
talconfig.yml