Skip to content

Latest commit

 

History

History
142 lines (113 loc) · 3.72 KB

File metadata and controls

142 lines (113 loc) · 3.72 KB

Configuration

kubectl apply -f config_baskervillehall.yaml

Retain Storage Class

kubectl apply -f ./deployment/storage_class.yaml

ASN database

cd deployment/bad_asn
docker build -t equalitie/baskervillehall_bad_asn:latest .
docker push equalitie/baskervillehall_bad_asn:latest
cd ../..

VPN database

  • Clone the repo
cd deployment/vpn_asn
git clone git@github.com:NullifiedCode/ASN-Lists.git
docker build -t equalitie/baskervillehall_vpn_asn:latest .
docker push equalitie/baskervillehall_vpn_asn:latest
cd ../..

Building

docker buildx build --platform linux/amd64 -t equalitie/baskervillehall:base .

docker buildx build --platform linux/amd64 -f ./Dockerfile_latest . -t equalitie/baskervillehall:latest
docker push equalitie/baskervillehall:latest
docker buildx build --platform linux/amd64 -f ./Dockerfile_latest . -t equalitie/baskervillehall:dev
docker push equalitie/baskervillehall:dev

Building session image

docker buildx build --platform linux/amd64 -f ./Dockerfile.session-simple . -t equalitie/baskervillehall:session2
docker push equalitie/baskervillehall:session2

Building predict image

docker buildx build --platform linux/amd64 -f ./Dockerfile.predictor . -t equalitie/baskervillehall:predictor
docker push equalitie/baskervillehall:predictor

Pipelines deployment

kubectl apply -f session_deployment.yaml kubectl apply -f prediction_deployment.yaml kubectl apply -f trainer_deployment.yaml kubectl apply -f storage_deployment.yaml

Jupyterhub

Build image

docker buildx build --platform linux/amd64 -f ./Dockerfile_jupyter_base . -t equalitie/baskervillehall:jupyterbase
docker push equalitie/baskervillehall:jupyterbase

docker buildx build --platform linux/amd64 -f ./Dockerfile_jupyter . -t equalitie/baskervillehall:jupyter
docker push equalitie/baskervillehall:jupyter

Installation

kubectl apply -f jupyter/admin-pvc.yaml
helm repo add jupyter https://hub.jupyter.org/helm-chart/
helm repo update
helm upgrade --cleanup-on-fail \
  --install jupyter jupyter/jupyterhub \
  --namespace default \
  --version=4.2.0 \
  --values ./jupyter/config.yaml

Jupyterhub modification

helm upgrade --cleanup-on-fail \
  jupyter jupyter/jupyterhub \
  --namespace default \
  --version=3.2.1 \
  --values ./jupyter/config.yaml

Jupyterhub forwarding

kubectl port-forward service/proxy-public 8080:http

Please, use user admin with an empty password.

Postgres deployment

kubectl apply -f deployment/postgres/postgres-baskervillehall-secret.yaml kubectl apply -f deployment/postgres/postgres-baskervillehall-pv.yaml kubectl apply -f deployment/postgres/postgres-baskervillehall-pvc.yaml kubectl apply -f deployment/postgres/postgres-baskervillehall.yaml kubectl apply -f deployment/postgres/postgres-baskervillehall-service.yaml

kubectl port-forward service/postgres-baskervillehall 5433:5432

Monitoring

# Add repo
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update

# Create monitoring namespace
kubectl create namespace monitoring

# Install
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring

kubectl port-forward -n monitoring svc/monitoring-grafana 3000:80
kubectl create job \
  --from=cronjob/dashboard-cache-refresh \
  dashboard-cache-refresh-manual-$(date +%s)