Quick links | Ubuntu 22.04
List of parameters used in application.yaml Parameters from mongo Good connect string: mongodb+srv://<login>:<password>@<hostname>/<database-to-connect>?replicaSet=<name-of-replicaset>&readPreference=secondary&retryWrites=true&w=majority&authSource=admin&tls=true Repository with all files Run mongodb inside Docker 1 2 3 4 docker run --rm --name mongodb -p 27017:27017 \ -e MONGO_INITDB_ROOT_USERNAME=admin \ -e MONGO_INITDB_ROOT_PASSWORD=secret \ mongo Connect to admin’s db and create a db with user (auth db will be the same db):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 mongosh "mongodb://admin:secret@localhost/admin?
Quick links | Ubuntu 22.04
At first, let’s set environment variables 1 2 3 4 DOMAIN=mongodb SUBJ="/CN=Local trust issuer" # format: # SUBJ="/C=RU/ST=someobl/L=somecity/O=somecompany/CN=$DOMAIN" Get a Certificate Authority certificate 1 2 3 openssl genrsa -out rootCA.key 4096 openssl req -x509 -new -nodes -key rootCA.key \ -sha256 -days 1024 -subj "$SUBJ" -out rootCA.pem Now we have public and private keys: rootCA.key and rootCA.pem. Let’s get information about our root Certificate Authority certificate:
Script to create cluster-admin and approve trough k8s-cluster: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 K8S_USER=your_user GROUP=cluster-admin openssl genrsa -out "$K8S_USER.
Requirements https://docs.k3s.io/installation/requirements
Spec Minimum Recommended CPU 1 core 2 cores RAM 512 MB 1 GB Create cluster with 3 workers: 1 2 3 4 5 6 7 # map 443 and 80 ports to ethernet on node k3d cluster create mycluster --agents 3 -p "443:443@loadbalancer" -p "80:80@loadbalancer" -p "8000:8000@loadbalancer" --wait # k3d cluster create mycluster --agents 3 --k3s-arg "--disable=traefik@server:0" --wait k cluster-info Kubernetes control plane is running at https://0.0.0.0:39973 CoreDNS is running at https://0.
| Ubuntu 22.04
Xelis wallet
Download the package and extract:
1 2 3 VER=0.0.2 curl -Lo /tmp/genesix_linux.zip https://github.com/xelis-project/xelis-genesix-wallet/releases/download/$VER/genesix_linux.zip unzip -d ~/Apps/xel/ /tmp/genesix_linux.zip We can download the icon and put it here as we will need to make desktop icon later For example save it from https://xelis.io/favicon.ico on /home/goto/Apps/xel/ with name favicon.ico
To make desktop icon for xel, we can make a file in usr/share/applications:
1 2 3 4 5 6 7 8 9 10 11 12 cat <<EOF > /usr/share/applications/xel.
I have k8s cluster and ceph cluster are connected to each other. Both are built on HDD. Let’s name them hdd-cluster. Also, I have k8s cluster and ceph cluster are built on SSD. They are connected to each other. Let’s name them ssd-cluster
Ok, we have
hdd-cluster: the first k8s cluster can create persistentVolume from ceph(hdd) ssd-cluster: the second k8s cluster can create persistentVolume from ceph(ssd) Let’s create pod connected with pv.