Enabling the Feature
Edit the machine configuration to enable the feature, specifying the Kubernetes namespaces from which Talos API can be accessed and the allowed Talos API roles.kubernetesTalosAPIAccess
like the following:
Injecting Talos ServiceAccount into manifests
Create the following manifest filedeployment.yaml
:
Note: make sure that you replace the IP 172.20.0.2
with a valid Talos node IP.
Use talosctl inject serviceaccount
command to inject the Talos ServiceAccount into the manifest.
Testing API Access
Apply the new manifest intodefault
namespace: