Rather than running helm on the client and passing it to kubectl, just install Flux and set the Helm repos on the server side Add resolv.conf to the Kubernetes config so that the hosts can resolve hostnames in order to pull down the Helm repositories Add backups to the database configurations
15 lines
311 B
Bash
Executable File
15 lines
311 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Get the directory where the script is located
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
|
|
# Change to the script directory
|
|
cd "$SCRIPT_DIR"
|
|
|
|
kubectl apply -k namespaces
|
|
kubectl apply -f helm/flux.yaml
|
|
sleep 5
|
|
kubectl apply -k helm
|
|
sleep 5
|
|
kubectl apply .
|