Skip to main content
GET
https://api.galadriel.com
/
v1
/
leases
/
{lease_id}
/
kubeconfig
curl https://api.galadriel.com/v1/leases/lse_xyz123/kubeconfig \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  > ~/.kube/galadriel-lse-xyz123.conf

# Use with kubectl
export KUBECONFIG=~/.kube/galadriel-lse-xyz123.conf
kubectl get nodes
apiVersion: v1
kind: Config
clusters:
- cluster:
    certificate-authority-data: LS0tLS1CRUdJTi...
    server: https://api.galadriel.com
  name: galadriel-lse-xyz123
contexts:
- context:
    cluster: galadriel-lse-xyz123
    namespace: customer-alice-lse-xyz123
    user: alice
  name: galadriel-lse-xyz123
current-context: galadriel-lse-xyz123
users:
- name: alice
  user:
    token: eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyMyJ9...

Path Parameters

lease_id
string
required
The lease ID

Response

Returns a Kubernetes config file in YAML format that can be used with kubectl.
curl https://api.galadriel.com/v1/leases/lse_xyz123/kubeconfig \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  > ~/.kube/galadriel-lse-xyz123.conf

# Use with kubectl
export KUBECONFIG=~/.kube/galadriel-lse-xyz123.conf
kubectl get nodes
apiVersion: v1
kind: Config
clusters:
- cluster:
    certificate-authority-data: LS0tLS1CRUdJTi...
    server: https://api.galadriel.com
  name: galadriel-lse-xyz123
contexts:
- context:
    cluster: galadriel-lse-xyz123
    namespace: customer-alice-lse-xyz123
    user: alice
  name: galadriel-lse-xyz123
current-context: galadriel-lse-xyz123
users:
- name: alice
  user:
    token: eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyMyJ9...

Usage

Once you have the kubeconfig, you can use standard Kubernetes tools:
# Set as current context
export KUBECONFIG=~/.kube/galadriel-lse-xyz123.conf

# View nodes
kubectl get nodes

# Deploy workloads
kubectl apply -f job.yaml

# Check GPU availability
kubectl describe nodes | grep nvidia.com/gpu