14 lines
538 B
Bash
14 lines
538 B
Bash
#!/bin/bash
|
|
kubectl create namespace botspace
|
|
kubectl create configmap init-sql --from-file=sql/init.sql -n botspace
|
|
kubectl create secret generic bot-secret --from-literal=TOKEN=7293191565:AAF70PTx9QgkIvt3BDQGFY64p-ngiaPLAMA -n botspace --dry-run=client -o yaml | kubectl apply -f -
|
|
|
|
kubectl apply -f statefulset.yaml
|
|
kubectl apply -f service.yaml
|
|
kubectl apply -f deployment.yaml
|
|
kubectl apply -f flask-web.yaml
|
|
|
|
echo "🌐 Spúšťam port-forward na http://localhost:8888"
|
|
kubectl port-forward svc/flask-service 8888:5000 -n botspace
|
|
|