Default railiance01 kubeconfig to config-railiance01
config-hosteurope names port 16443, but the k3s-api-railiance01 ops-bridge tunnel listens on 16444, so every default target failed with connection refused. Switch Makefile, tools and docs to ~/.kube/config-railiance01 and fix the restore recipe to rewrite the API address to the tunnel port. The node-side hostPath in STATE.md is unrelated and unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 1031639@bnt-lap001 Assistant-Session: e5073fee-f4ae-4fc3-a75a-6c1fc83e0576
This commit is contained in:
parent
74213d80f0
commit
0da83472c4
20 changed files with 52 additions and 50 deletions
|
|
@ -51,23 +51,27 @@ ambient `kubectl` context for production app deploys.
|
|||
The production Makefile targets default to:
|
||||
|
||||
```text
|
||||
~/.kube/config-hosteurope
|
||||
~/.kube/config-railiance01
|
||||
```
|
||||
|
||||
It reaches the API through the `k3s-api-railiance01` ops-bridge tunnel on
|
||||
`127.0.0.1:16444` (`bridge up k3s-api-railiance01` if it is down). The older
|
||||
`~/.kube/config-hosteurope` names port `16443` and is retired.
|
||||
|
||||
Restore it from Railiance01 when missing:
|
||||
|
||||
```bash
|
||||
ssh tegwick@92.205.62.239 'sudo cat /etc/rancher/k3s/k3s.yaml' \
|
||||
| sed 's|127.0.0.1|92.205.62.239|' > ~/.kube/config-hosteurope
|
||||
chmod 600 ~/.kube/config-hosteurope
|
||||
export KUBECONFIG=~/.kube/config-hosteurope
|
||||
| sed 's|127.0.0.1:6443|127.0.0.1:16444|' > ~/.kube/config-railiance01
|
||||
chmod 600 ~/.kube/config-railiance01
|
||||
export KUBECONFIG=~/.kube/config-railiance01
|
||||
```
|
||||
|
||||
The app-specific targets also accept explicit overrides:
|
||||
|
||||
```bash
|
||||
REUSE_KUBECONFIG=~/.kube/config-hosteurope make reuse-status
|
||||
INTER_HUB_KUBECONFIG=~/.kube/config-hosteurope make inter-hub-status
|
||||
REUSE_KUBECONFIG=~/.kube/config-railiance01 make reuse-status
|
||||
INTER_HUB_KUBECONFIG=~/.kube/config-railiance01 make inter-hub-status
|
||||
```
|
||||
|
||||
## SOPS Age Key Bootstrap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue