Deploy integrations and clusterconfig talos script.

This commit is contained in:
Joseph Hanson 2023-09-25 19:23:40 -05:00
parent 29fa134f1f
commit d66d040bdd
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 22 additions and 0 deletions

18
talos/deploy-integrations.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# shellcheck disable=2312
pushd integrations >/dev/null 2>&1 || exit 1
rm -rf cni/charts
envsubst < ../../kubernetes/apps/kube-system/cilium/app/values.yaml > cni/values.yaml
kustomize build --enable-helm cni | kubectl apply -f -
rm cni/values.yaml
rm -rf cni/charts
rm -rf kubelet-csr-approver/charts
envsubst < ../../kubernetes/apps/system/kubelet-csr-approver/app/values.yaml > kubelet-csr-approver/values.yaml
if ! kubectl get ns system >/dev/null 2>&1; then
kubectl create ns system
fi
kustomize build --enable-helm kubelet-csr-approver | kubectl apply -f -
rm kubelet-csr-approver/values.yaml
rm -rf kubelet-csr-approver/charts

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Generate a new config using talhelper
talhelper genconfig --env-file talenv.sops.yaml --secret-file talsecret.sops.yaml --config-file talconfig.yaml