-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
114 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
secret* | ||
!secrets.enc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
investigate talhelper | ||
https://github.com/joeypiccola/k8s_home/tree/main?tab=readme-ov-file#talos-configs | ||
|
||
argo/helm setup | ||
|
||
use terraform | ||
|
||
??? other things ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
if [ -d secrets ]; then | ||
echo "secrets directory already exists" | ||
exit 1 | ||
fi | ||
echo "secrets*" >> .gitignore | ||
echo "!secrets.enc" >> .gitignore | ||
mkdir -p secrets | ||
talosctl gen secrets -o ./secrets/secrets.yaml | ||
talosctl gen config --with-secrets ./secrets/secrets.yaml secrets https://10.10.0.42:6443 -o secrets | ||
./save-secrets.sh | ||
cd secrets | ||
talosctl apply-config --insecure --file "./controlplane.yaml" --nodes 10.10.8.188 | ||
talosctl apply-config --insecure --file "./controlplane.yaml" --nodes 10.10.15.105 | ||
talosctl apply-config --insecure --file "./controlplane.yaml" --nodes 10.10.4.92 | ||
talosctl bootstrap --talosconfig=talosconfig --endpoints 10.10.8.188 --nodes 10.10.8.188 | ||
|
||
# is this right? | ||
talosctl --talosconfig=talosconfig config endpoint 10.10.0.42 10.10.8.188 10.10.15.105 10.10.4.92 | ||
|
||
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.178 | ||
|
||
# is this right? | ||
talosctl --talosconfig=talosconfig config node 10.10.0.42 10.10.8.188 10.10.15.105 10.10.4.92 10.10.18.178 | ||
# talosctl --talosconfig=talosconfig config node 10.10.0.42 | ||
|
||
talosctl --talosconfig=talosconfig kubeconfig ./kubeconfig -n 10.10.0.42 | ||
# talosctl --talosconfig=talosconfig kubeconfig -n 10.10.0.42 | ||
kubectl --kubeconfig=kubeconfig get nodes | ||
kubectl --kubeconfig=kubeconfig get nodes -o wide | ||
kubectl --kubeconfig=kubeconfig get deployments | ||
kubectl --kubeconfig=kubeconfig get pods | ||
|
||
kubectl --kubeconfig=kubeconfig create deployment hello-world --image=kicbase/echo-server:1.0 --dry-run=client -o yaml | kubectl --kubeconfig=kubeconfig apply -f - | ||
kubectl --kubeconfig=kubeconfig get service hello-world | ||
kubectl --kubeconfig=kubeconfig describe deployment hello-world | ||
kubectl --kubeconfig=kubeconfig describe service hello-world | ||
kubectl --kubeconfig=kubeconfig get service hello-world | ||
kubectl --kubeconfig=kubeconfig expose deployment hello-world --type=LoadBalancer --port=8080 | ||
kubectl --kubeconfig=kubeconfig describe deployment hello-world | ||
kubectl --kubeconfig=kubeconfig describe service hello-world | ||
kubectl --kubeconfig=kubeconfig get service hello-world | ||
|
||
kubectl --kubeconfig=kubeconfig get nodes -o wide | ||
|
||
kubectl --kubeconfig=kubeconfig apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml | ||
kubectl --kubeconfig=kubeconfig -n metallb-system get pods | ||
kubectl --kubeconfig=kubeconfig apply -f ../kubernetes/infrastructure/networking/metallb/config.yaml | ||
|
||
kubectl --kubeconfig=kubeconfig get nodes | ||
kubectl --kubeconfig=kubeconfig get nodes -o wide | ||
kubectl --kubeconfig=kubeconfig get deployments | ||
kubectl --kubeconfig=kubeconfig get pods | ||
kubectl --kubeconfig=kubeconfig get nodes -o wide | ||
|
||
kubectl --kubeconfig=kubeconfig describe deployment hello-world | ||
kubectl --kubeconfig=kubeconfig describe service hello-world | ||
kubectl --kubeconfig=kubeconfig get service hello-world -o yaml | ||
kubectl --kubeconfig=kubeconfig get service hello-world | ||
|
||
EXTERNAL_IP=$(kubectl --kubeconfig=kubeconfig get service hello-world -o jsonpath='{.status.loadBalancer.ingress[0].ip}') | ||
|
||
echo "EXTERNAL_IP for hello-world is: $EXTERNAL_IP" | ||
|
||
PORTS=$(kubectl --kubeconfig=kubeconfig get service hello-world -o jsonpath='{.spec.ports[*].port}') | ||
echo "PORTS for hello-world are: $PORTS" | ||
for port in $PORTS; do | ||
echo "Curling $EXTERNAL_IP:$port" | ||
curl $EXTERNAL_IP:$port | ||
done | ||
|
||
cd .. | ||
./save-secrets.sh |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
if [ -d secrets ]; then | ||
echo "secrets directory already exists" | ||
exit 1 | ||
fi | ||
sops --decrypt secrets.enc | base64 -d | tar xzf - |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
tar czf - ./secrets | base64 > secrets.tmp | ||
sops --encrypt secrets.tmp > secrets.enc | ||
rm secrets.tmp |
Large diffs are not rendered by default.
Oops, something went wrong.