v71: переезд на lang.kube5s.ru (германская ВМ, nginx, без кубера)
This commit is contained in:
+3
-15
@@ -9,20 +9,8 @@ KEY=$(cat ~/lang/token.txt)
|
||||
cp ~/lang/dist/index.html /tmp/lyngvo_index.html
|
||||
sed -i "s|const GROQ_API_KEY = '';|const GROQ_API_KEY = '${KEY}';|" /tmp/lyngvo_index.html
|
||||
|
||||
# Синхронизация всей папки lang на ВМ
|
||||
rsync -az -e "ssh -i ~/.ssh/naeel_vm_id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=10" ~/lang/ naeel@5.172.178.213:~/terra/lang/
|
||||
|
||||
# Деплой на ВМ (index.html с ключом — через временный файл)
|
||||
scp -i ~/.ssh/naeel_vm_id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=10 /tmp/lyngvo_index.html naeel@5.172.178.213:~/terra/lang/index.html
|
||||
ssh -i ~/.ssh/naeel_vm_id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=10 naeel@5.172.178.213 '
|
||||
cd ~/terra/lang && \
|
||||
kubectl create configmap lyngvo-html --from-file=index.html -n default --dry-run=client -o yaml | kubectl apply -f - && \
|
||||
kubectl create configmap lyngvo-nginx --from-file=default.conf=nginx.conf -n default --dry-run=client -o yaml | kubectl apply -f - && \
|
||||
kubectl apply -f k8s/deployment.yaml && \
|
||||
kubectl apply -f k8s/ingress.yaml && \
|
||||
kubectl rollout restart deploy/lyngvo -n default && \
|
||||
kubectl rollout status deploy/lyngvo -n default --timeout=60s
|
||||
'
|
||||
# Деплой на германскую ВМ (nginx + Groq прокси)
|
||||
scp -i ~/.ssh/vultr_openssh -o StrictHostKeyChecking=no /tmp/lyngvo_index.html root@95.179.252.111:/var/www/lyngvo/index.html
|
||||
|
||||
rm -f /tmp/lyngvo_index.html
|
||||
echo "\n=== Деплой завершён. Проверяй capire.kube5s.ru ==="
|
||||
echo "\n=== Деплой завершён. Проверяй https://lang.kube5s.ru ==="
|
||||
|
||||
Reference in New Issue
Block a user