-
Notifications
You must be signed in to change notification settings - Fork 8
/
run_on_minikube.sh
35 lines (27 loc) · 925 Bytes
/
run_on_minikube.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
minikube start
cd "$(dirname "$0")"
ENV="$(pwd -P)/.env"
# Remove the existing environment (if any)
if [ -d "$ENV" ]; then
COMMAND="rm -rf ${ENV}"
echo "Removing old environment..."
eval $COMMAND
else
WARN_MISSING_VENV=1
fi
cp .env.example ${ENV}
set -a
source ${ENV}
## Common namespace
kubectl create -f ./common/kube-logging.yaml
## ES
kubectl create -f ./elastic-search/elastic-service.yaml
envsubst < ./elastic-search/elastic-statefulset.yaml | kubectl create -f -
## Kibana
envsubst < ./kibana/kibana.yml | kubectl create -f -
## Fluent bit
envsubst < ./fluent-bit/fluent-bit-service-account.yml | kubectl create -f -
envsubst < ./fluent-bit/fluent-bit-role.yml | kubectl create -f -
envsubst < ./fluent-bit/fluent-bit-role-binding.yml | kubectl create -f -
envsubst < ./fluent-bit/fluent-bit-configmap.yml | kubectl create -f -
envsubst < ./fluent-bit/fluent-bit-ds-minikube.yml | kubectl create -f -