Skip to content

Commit

Permalink
Sealed secret implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcherbatyi committed Jun 26, 2024
1 parent 17b27f7 commit d9de47c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 103 deletions.
21 changes: 17 additions & 4 deletions ollama.environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
yes|/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&&eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

# Install Terraform, Flux, and htop using Homebrew
yes|brew install kubectx opentofu fluxcd/tap/flux htop kind derailed/k9s/k9s
yes|brew install kubectx opentofu fluxcd/tap/flux htop kind derailed/k9s/k9s kubeseal

# Initialize kind cluster
cat <<EOF >> kind-config.yaml
Expand Down Expand Up @@ -59,11 +59,24 @@ flux create hr ollama -n default --interval=10m --source=HelmRepository/ollama-c
# check the resources
flux stats

#add sealed-secrets controller
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.27.0/controller.yaml

#install kubeseal manager
brew install kubeseal

kubectl create secret generic openwebui-secret-values --from-file=values.yaml=./values.yaml --dry-run=client -o yaml > openwebui-secret.yaml
kubeseal < openwebui-secret.yaml > mysealedsecret.yaml
kubectl apply -f mysealedsecret.yaml

# openwebui
# copy values.yaml https://github.com/open-webui/helm-charts/blob/main/charts/open-webui/values.yaml
# create secret with values.yaml
k create secret generic openwebui-secret-values --from-file=values.yaml=../values.yaml
k describe secrets openwebui-secret-values
# create sealedsecret with values.yaml

kubectl create secret generic openwebui-secret-values --from-file=values.yaml=./values.yaml --dry-run=client -o yaml > openwebui-secret.yaml
kubeseal < openwebui-secret.yaml > mysealedsecret.yaml
kubectl apply -f mysealedsecret.yaml

# create git source
flux create source git -n default openwebui --url=https://github.com/open-webui/helm-charts --branch=main
# create helm release
Expand Down
99 changes: 0 additions & 99 deletions openwebui.yaml

This file was deleted.

0 comments on commit d9de47c

Please sign in to comment.