add claude files [ci skip]
This commit is contained in:
parent
8601c26e63
commit
65a1fb57a8
9 changed files with 120 additions and 5 deletions
16
.claude/commands/kubectl.md
Executable file
16
.claude/commands/kubectl.md
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
# Kubectl Command
|
||||
|
||||
Run kubectl commands on the cluster via the remote executor.
|
||||
|
||||
Use the remote executor relay:
|
||||
```bash
|
||||
echo "kubectl $ARGUMENTS" > /System/Volumes/Data/mnt/code/infra/.claude/cmd_input.txt
|
||||
sleep 2 && cat /System/Volumes/Data/mnt/code/infra/.claude/cmd_status.txt
|
||||
cat /System/Volumes/Data/mnt/code/infra/.claude/cmd_output.txt
|
||||
```
|
||||
|
||||
Examples:
|
||||
- `/kubectl get pods -A` - List all pods
|
||||
- `/kubectl get pods -n immich` - List pods in immich namespace
|
||||
- `/kubectl logs -n immich deploy/immich-server` - View logs
|
||||
- `/kubectl describe pod -n monitoring <pod>` - Describe a pod
|
||||
Loading…
Add table
Add a link
Reference in a new issue