-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·34 lines (25 loc) · 933 Bytes
/
deploy.sh
File metadata and controls
executable file
·34 lines (25 loc) · 933 Bytes
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
# Insert Secrets
# Check if GOOGLE_API_KEY is set
# if [ -z "$GOOGLE_API_KEY" ]; then
# echo "Error: GOOGLE_API_KEY environment variable is not set"
# exit 1
# fi
# Create base64 encoded value
# $ GOOGLE_API_KEY_BASE64=$(echo -n "$GOOGLE_API_KEY" | base64)
# Create actual secret file from template
# cat config/secret-template.yaml | \
# sed "s/\${GOOGLE_API_KEY_BASE64}/$GOOGLE_API_KEY_BASE64/g" > \
# config/secret.yaml
# Apply configurations
# kubectl apply -f config/secret.yaml
# rm -f config/secret.yaml
# rm -f config/secret.yaml
# Build images
# cd scraper
# docker build -t lead-finder:latest -f Dockerfile.lead_finder .
# docker build -t scraper:latest -f Dockerfile.scraper .
kubectl apply -f config/manifest.yaml
# Load into Kind cluster
# kind load docker-image lead-finder:latest --name kind
# kind load docker-image scraper:latest --name kind
# kind load docker-image redis:latest --name kind