echo "alias sber='kubectl --kubeconfig ~/.kube/config'" >> /.bash_aliases
source ~/.bash_aliases
Create secrets to publish images
docker build -t swr.ru-moscow-1.hc.sbercloud.ru/detsad/flask-kubernetes:v2 ./services/server/
docker build -t swr.ru-moscow-1.hc.sbercloud.ru/detsad/vue-kubernetes:v14 ./services/client/
docker push swr.ru-moscow-1.hc.sbercloud.ru/detsad/vue-kubernetes:v14
sber cluster-info
sber create -f ./kubernetes/postgres-deployment.yml
sber create -f ./kubernetes/postgres-service.yml
sber apply -f ./kubernetes/flask-deployment.yml
sber create -f ./kubernetes/flask-service.yml
sber apply -f ./kubernetes/vue-deployment.yml
..etc
sber get pods
sber exec flask-fcb599d8b-kh4zt --stdin --tty -- python manage.py recreate_db
sber exec flask-fcb599d8b-kh4zt --stdin --tty -- python manage.py seed_db
sber exec postgres-5d6ff4dd69-5kmqs --stdin --tty -- createdb -U sample persons
sber exec postgres-5d6ff4dd69-5kmqs --stdin --tty -- psql -U sample
\c persons
\dt
select * from persons
curl http://37.230.195.218/persons/ping
Copy your CA to dir /usr/local/share/ca-certificates/ Use command: sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt Update the CA store: sudo update-ca-certificates
chrome://restart
docker-compose up -d --build
docker-compose exec server python manage.py recreate_db
docker-compose exec server python manage.py seed_db
curl http://localhost:5000/persons/ping
https://testdriven.io/running-flask-on-kubernetes https://github.com/gjovanov/facer