You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run task configure, I get the following error:
Any conflicting files in the kubernetes directory will be overwritten... continue? [y/N]: y
task: [template:render-configs] makejinja
Load data '/Users/<username>/Code/talos-cluster/config.yaml'
Traceback (most recent call last):
File "/Users/<username>/Code/talos-cluster/.venv/bin/makejinja", line 10, in <module>
sys.exit(makejinja_cli())
~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/rich_click/rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/typed_settings/cli_click.py", line 261, in new_func
return orig_f(*args, **kwargs)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/cli.py", line 37, in makejinja_cli
makejinja(config)
~~~~~~~~~^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 46, in makejinja
data = load_data(config)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 325, in load_data
data |= loader(path)
~~~~~~^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 256, in from_yaml
for doc in yaml.safe_load_all(fp):
~~~~~~~~~~~~~~~~~~^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/__init__.py", line 93, in load_all
yield loader.get_data()
~~~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/constructor.py", line 45, in get_data
return self.construct_document(self.get_node())
~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/composer.py", line 27, in get_node
return self.compose_document()
~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/yaml/parser.py", line 438, in parse_block_mapping_key
raise ParserError("while parsing a block mapping", self.marks[-1],
"expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "/Users/<username>/Code/talos-cluster/config.yaml", line 8, column 1
expected <block end>, but found '<block sequence start>'
in "/Users/<username>/Code/talos-cluster/config.yaml", line 12, column 3
task: Failed to run task "configure": exit status 1
When I change:
# (REQUIRED) The network (in CIDR notation) your nodes are on (e.g. 192.168.1.0/24)
node_network: "192.168.50.0/24"
# (REQUIRED) Use only 1, 3 or more ODD number of controller nodes, recommended is 3. Worker nodes are optional.
node_inventory: []
- name: "controler1"
in the config file to:
# (REQUIRED) The network (in CIDR notation) your nodes are on (e.g. 192.168.1.0/24)
node_network: "192.168.50.0/24"
# (REQUIRED) Use only 1, 3 or more ODD number of controller nodes, recommended is 3. Worker nodes are optional.
node_inventory:
- name: "controler1" # (REQUIRED) Name of the node (must match [a-z0-9-\]+)
I get the following error:
Render file '/Users/<username>/Code/talos-cluster/templates/config/kubernetes/apps/network/external/cloudflared/kustomization.yaml.j2' ->
'/Users/<username>/Code/talos-cluster/kubernetes/apps/network/external/cloudflared/kustomization.yaml'
Traceback (most recent call last):
File "/Users/<username>/Code/talos-cluster/templates/scripts/plugin.py", line 62, in cloudflare_tunnel
with open('cloudflared.json', 'r') as file:
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'cloudflared.json'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/<username>/Code/talos-cluster/.venv/bin/makejinja", line 10, in <module>
sys.exit(makejinja_cli())
~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/rich_click/rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/typed_settings/cli_click.py", line 261, in new_func
return orig_f(*args, **kwargs)
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/cli.py", line 37, in makejinja_cli
makejinja(config)
~~~~~~~~~^^^^^^^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 82, in makejinja
handle_input_dir(
~~~~~~~~~~~~~~~~^
user_input_path,
^^^^^^^^^^^^^^^^
...<4 lines>...
plugin_path_filters,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 180, in handle_input_dir
render_file(
~~~~~~~~~~~^
input_path,
^^^^^^^^^^^
...<4 lines>...
enforce_jinja_suffix,
^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/makejinja/app.py", line 399, in render_file
rendered = template.render()
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/<username>/Code/talos-cluster/.venv/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/Users/<username>/Code/talos-cluster/templates/config/kubernetes/apps/network/external/cloudflared/secret.sops.yaml.j2", line 8, in top-level template code
TUNNEL_ID: "#{ cloudflare_tunnel('TunnelID') }#"
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/<username>/Code/talos-cluster/templates/scripts/plugin.py", line 68, in cloudflare_tunnel
raise FileNotFoundError(f"File not found: cloudflared.json") from e
FileNotFoundError: File not found: cloudflared.json
task: Failed to run task "configure": exit status 1
How can I fix this?
The text was updated successfully, but these errors were encountered:
When I run task configure, I get the following error:
When I change:
in the config file to:
I get the following error:
How can I fix this?
The text was updated successfully, but these errors were encountered: