Compare commits

..

No commits in common. "793325d7246184330dff8833b48221c0b0454b2d" and "d2bbb7674dd1b92ec8ab02d9c13cc36aca71bba2" have entirely different histories.

3 changed files with 1 additions and 48 deletions

View file

@ -41,7 +41,6 @@ tasks:
DEPS: >- DEPS: >-
age age
ansible ansible
cilium-cli
direnv direnv
derailed/k9s/k9s derailed/k9s/k9s
fluxcd/tap/flux fluxcd/tap/flux
@ -53,7 +52,6 @@ tasks:
kustomize kustomize
pre-commit pre-commit
prettier prettier
shellcheck
sops sops
stern stern
talhelper talhelper

View file

@ -11,8 +11,7 @@ helm plugin install https://github.com/databus23/helm-diff
### Bootstrap talos cluster ### Bootstrap talos cluster
```sh ```sh
talosctl apply-config --nodes=10.1.1.61 --file=./kubernetes/bootstrap/talos/clusterconfig/homelab-shadowfax.yaml --insecure omnictl cluster template sync -f ./omni-homelab-export.yaml --omniconfig ./omniconfig.yaml
talosctl bootstrap --nodes=10.1.1.61
``` ```
## CNI & Container Proxy ## CNI & Container Proxy

View file

@ -1,44 +0,0 @@
#!/bin/sh
set -x
node=${1}
#nodeName=$(kubectl get node ${node} -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}')
nodeSelector='"nodeSelector": { "kubernetes.io/hostname": "'${node:?}'" },'
podName=${USER}-nsenter-${node}
kubectl -n kube-system run ${podName:?} --restart=Never -it --rm --image overriden --overrides '
{
"spec": {
"hostPID": true,
"hostNetwork": true,
'"${nodeSelector?}"'
"tolerations": [{
"operator": "Exists"
}],
"containers": [
{
"name": "nsenter",
"image": "mirror.gcr.io/library/busybox:musl",
"command": ["sh", "-c", "mkdir -p /host/var/lib/busybox; cp -r /bin/busybox /host/var/lib/busybox/; export PATH=\"$PATH:/var/lib/busybox\"; /host/var/lib/busybox/busybox --install /host/var/lib/busybox; nsenter -t1 -m -u -i -n /var/lib/busybox/busybox sh"],
"stdin": true,
"tty": true,
"securityContext": {
"privileged": true
},
"volumeMounts": [
{
"name": "host-tmp",
"mountPath": "/host/var"
}
]
}
],
"volumes": [
{
"name": "host-tmp",
"hostPath": {
"path": "/var"
}
}
]
}
}'