trustgraph
trustgraph copied to clipboard
Cannot enable Claude models as kubectl -n trustgraph create secret generic claude-credentials fails
When attempting to saving claude credentials, using the command:
kubectl -n trustgraph create secret \
generic claude-credentials \
--from-literal=claude-key=CLAUDE_KEY
I get the following error:
error: failed to create secret the server could not find the requested resource (post secrets)
That looks like an error at the Kubernetes API level.
It's possible the namespace doesn't exist. There's chicken & egg problem with deployment, you can't start the TrustGraph resources until the secret is deployed, but the secret requires the namespace: So you need to make sure you run this after the TG resources.yaml has been deployed to K8s to create the namespace.
Things you might want to check...
- Check the
trustgraphnamespace exists:kubectl get namespace trustgraph - Have you got TG resources deployed?
kubectl -n trustgraph get all - Check that the secrets module is enabled on K8s:
kubectl api-resources | grep secrets
Which K8s deployment are you using?