Latest News

Read all latest blog posts

post image
author image
:date_long

Learn AWS EKS Kubernetes cluster and devops in AWS (Part 1)

Learn AWS EKS Kubernetes cluster and devops in AWS (Part 1) Starting AWS EKS cluster manually in AWS web console

Read More
post image
author image
:date_long

Login to Rancher

NAME="rancher.web.ui" RANCHER_URL="https://$NAME:10443" APITOKEN=$(curl -sk "${RANCHER_URL}/v3-public/localProviders/local?action=login" \ -H "content-type: application/json" \ --data-binary "{\"username\":\"admin\",\"password\":\"admin\"}" 2>/dev/null | jq -r .

Read More
post image
author image
:date_long

PostgreSQL RDS AWS

psql -h mldb-postgres.cgpyiy4kedtv.us-west-2.rds.amazonaws.com -U postgres -d mldb kubectl exec pod-demo-0 -it -- \ sh -c "echo 'DROP DATABASE fgh;' | PGPASSWORD=$PGPASSWORD /usr/bin/psql -h 127.

Read More
post image
author image
:date_long

Remove taint

kubectl taint node archlinux node.kubernetes.io/disk-pressure:NoSchedule-

Read More
post image
author image
:date_long

Superset

helm install superset --set service.type=NodePort stable/superset values.yaml initFile: |- if [ "$1" == "development-mode" ]; then /usr/local/bin/superset-init --username admin --firstname admin --lastname user --email admin@fab.

Read More
post image
author image
:date_long

Delete database entries via bash alias

alias delprn='psql "host=127.0.0.1 port=5432 sslmode=disable user=rednetwork password=password" <<< "delete from port_range_networks where id between 1 and 10000;"'

Read More
post image
author image
:date_long

flask commands

with app.app_context(): # needed to make CLI commands work @app.cli.command("reset") def reset_db(): """Drops and Creates fresh database""" db.

Read More