https://github.com/crossplane-contrib
Saturday, 30 July 2022
Tuesday, 26 July 2022
Checking EKS status using aws cli
aws eks describe-cluster \
--region us-east-1 \
--name my-cluster \
--query "cluster.status"
Creating EKS using aws CLI
aws eks create-cluster --region us-east-1 --name my-cluster --kubernetes-version 1.22 \
--role-arn arn:aws:iam::73095:role/AmazonEKSClusterRole \
--resources-vpc-config subnetIds=subnet-0814938360f2fdf5b,subnet-040ad1e2b5ffe4775
KUBE master setup
root@kubernetes-master:/home/ubuntu# history
1 swapoff -a
2 exit
3 swapoff -
4 swapoff -a
5 rm -rf /swap.img
6 exit
7 sudo apt update
8 sudo apt install docker.io
9 sudo systemctl enable docker
10 sudo systemctl start docker
11 sudo systemctl enable docker
12 sudo apt install apt-transport-https curl
13 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
14 sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
15 sudo apt install kubeadm kubelet kubectl kubernetes-cni
16 sudo swapoff -a
17 vi /etc/fstab
18 sudo hostnamectl set-hostname kubernetes-master
19 sudo kubeadm init
20 mkdir -p $HOME/.kube
21 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
22 sudo chown $(id -u):$(id -g) $HOME/.kube/config
23 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
24 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
25 kubectl
26 kubectl get pods --all-namespaces
27 kubectl get nodes
28 kubectl get pods --all-namespaces
29 kubectl
30 sudo swapoff -a
31 kubectl get nodes
32 sudo -i
33 kubectl get nodes
34 ufw allow 6443/udp && ufw allow 6443/tcp
35 kubectl get nodes
36 sudo -i
37 strace -eopenat kubectl version
38 kubectl get nodes
39 kubectl
40 sudo dockerf ps
41 sudo docker ps
42 kubectl get src
43 reboot
44 kubectl get nodes
45 history
KUBE worker SETUP
root@kubernetes-worker:/home/ubuntu# history
1 sudo apt update
2 sudo apt install docker.io
3 sudo systemctl start docker
4 sudo systemctl enable docker
5 sudo apt install apt-transport-https curl
6 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
7 sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
8 sudo apt install kubeadm kubelet kubectl kubernetes-cni
9 sudo swapoff -a
10 sudo hostnamectl set-hostname kubernetes-worker
11 hostname
21 kubeadm join 172.3.230:6443 --token b683jdx2fpzby --discovery-token-ca-cert-hash sha256:57151584e5bfdc0a7168cadc19b298f5a5aab3f3ad90f5d0a2921d54
22 history
root@kubernetes-worker:/home/ubuntu#
Saturday, 23 January 2021
Algorithms trading live stock data
This is what I found on the internet:
There is no free lunch here in the data segment.
1)You have to get into the datafeed agreement with NSE. And Realtime datafeed is quite costlier as per year charges come around Rs: 20 lakh per exchange + Service Taxes.
2)Per user fee will be applicable depending upon how you are planning to monetize the datafeed. Normally per use fee for NSE cash/futures segment is Rs: 360/user and first 300 users will be waived off.
3)You have to define yourself as data vendor or data redistributor or you are planning to show the exchange data at free of cost.
4)You can lower you cost by getting the data from data redistributor(e.g globaldatafeeds) as normally your fee would be reduced by 20%. However still you have to get data vending agreement with NSE exchange. Without NSE’s permission you are not allowed to vend the data or redistribute the data even if you are doing it at free of cost. Otherwise you will be tagged as a illegal data vendor as per DOTEX.
5)Only Data Redistributor (aka Authorized data vendors like globaldatafeeds, esignal, bloomberg...etc) develop their own API not the exchange itself.
6)However if you are looking for low cost options then you can prefer snapshot data or 15min delayed datafeeds. And the same above rules are applicable for most of the exchanges.
Git
1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...
-
https://github.com/crossplane-contrib
-
https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html
-
awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \ <(grep 'cpu ...