Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Run SLO tests over kubernetes inside github action worker #456

Open
rekby opened this issue Jul 26, 2024 · 2 comments
Open

feature: Run SLO tests over kubernetes inside github action worker #456

rekby opened this issue Jul 26, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rekby
Copy link
Member

rekby commented Jul 26, 2024

@rekby rekby added the enhancement New feature or request label Jul 26, 2024
@rekby rekby self-assigned this Jul 26, 2024
@rekby
Copy link
Member Author

rekby commented Jul 26, 2024

Assigneed to @Nikita-Levuskin

@Nikita-Levuskin
Copy link

Запустить YDB в k8s(minikube) локально:

установить kubectl:

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

установить Helm 3:

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

установить и запустить Minikube:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
  && chmod +x minikube
mkdir -p /usr/local/bin/
install minikube /usr/local/bin/
minikube start

или если можно отдать максимум ресурсов

minikube start --memory=max --cpus=max

склонировать репозиторий ydb-kubernetes-operator:

git clone https://github.com/ydb-platform/ydb-kubernetes-operator && cd ydb-kubernetes-operator

Установите на кластер контроллер YDB:

helm install ydb-operator ydb/ydb-operator

Примените манифест для создания кластера YDB:

В конфиге заменить строки относящиеся к dataStore на dataStore: [] (DataStore это про монтирование ресурсов pv/pvc для подов ydb, в миникубе они по умолчанию не настроены)

kubectl apply -f samples/storage-block-4-2.yaml 
kubectl describe storages.ydb.tech 

дождаться пока будет статус Ready

Примените манифест для создания базы данных:

kubectl apply -f samples/database.yaml 
kubectl describe database.ydb.tech 

дождаться пока будет статус Ready

Открыть порт для мониторинга:

kubectl port-forward database-sample-0 8765

инфа отсюда:

https://ydb.tech/docs/ru/quickstart
https://ydb.tech/docs/ru/devops/kubernetes/initial-deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants