mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-20 05:14:19 +01:00
k8s chart links update
This commit is contained in:
@@ -135,7 +135,7 @@ sudo snap install helm --classic
|
|||||||
|
|
||||||
## install the Galoy charts repo
|
## install the Galoy charts repo
|
||||||
```
|
```
|
||||||
helm repo add galoy-repo https://github.com/GaloyMoney/charts
|
helm repo add galoy-repo https://galoymoney.github.io/charts/
|
||||||
|
|
||||||
# add the bitnami charts https://charts.bitnami.com/
|
# add the bitnami charts https://charts.bitnami.com/
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# charts
|
# charts
|
||||||
helm repo add galoy-repo https://github.com/GaloyMoney/charts
|
helm repo add galoy-repo https://galoymoney.github.io/charts/
|
||||||
|
|
||||||
# add the bitnami charts https://charts.bitnami.com/
|
# add the bitnami charts https://charts.bitnami.com/
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ sudo systemctl restart tbitcoind
|
|||||||
############
|
############
|
||||||
|
|
||||||
## charts
|
## charts
|
||||||
helm repo add galoy-repo https://github.com/GaloyMoney/charts
|
helm repo add galoy-repo https://galoymoney.github.io/charts/
|
||||||
## add the bitnami charts https://charts.bitnami.com/
|
## add the bitnami charts https://charts.bitnami.com/
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
helm repo update
|
helm repo update
|
||||||
@@ -208,7 +208,6 @@ if [ "$1" = off ]; then
|
|||||||
# delete the manually generated secrets
|
# delete the manually generated secrets
|
||||||
kubectl -n test delete secret galoy-mongodb
|
kubectl -n test delete secret galoy-mongodb
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ if [ "$1" = on ]; then
|
|||||||
|
|
||||||
sudo usermod -a -G sudo,bitcoin,debian-tor k8s
|
sudo usermod -a -G sudo,bitcoin,debian-tor k8s
|
||||||
|
|
||||||
sudo su - k8s
|
# sudo su - k8s
|
||||||
|
|
||||||
# https://www.server-world.info/en/note?os=Debian_11&p=microk8s&f=1
|
# https://www.server-world.info/en/note?os=Debian_11&p=microk8s&f=1
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
@@ -21,16 +20,29 @@ if [ "$1" = on ]; then
|
|||||||
sudo ln -s ${SSDmount}/snap /var/snap
|
sudo ln -s ${SSDmount}/snap /var/snap
|
||||||
|
|
||||||
sudo apt install -y snapd
|
sudo apt install -y snapd
|
||||||
sudo snap install microk8s --classic
|
sudo snap install microk8s --classic --channel=1.23/stable
|
||||||
|
|
||||||
echo 'export PATH=/snap/bin:$PATH' >> ~/.bashrc
|
|
||||||
echo "alias kubectl='microk8s.kubectl'" >> ~/.bashrc
|
|
||||||
|
|
||||||
source ~/.bashrc
|
echo 'export PATH=/snap/bin:$PATH' | sudo tee -a /home/k8s/.profile
|
||||||
|
# source /home/k8s/.bashrc
|
||||||
|
|
||||||
sudo usermod -a -G microk8s k8s
|
sudo chown -f -R k8s /home/k8s/.kube
|
||||||
sudo chown -f -R k8s ~/.kube
|
# newgrp microk8s
|
||||||
newgrp microk8s
|
|
||||||
|
echo "\
|
||||||
|
alias kubectl='microk8s kubectl'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias g='git'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias gs='git status'
|
||||||
|
alias k='kubectl'
|
||||||
|
alias l='ls -CF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias tf='terraform'\
|
||||||
|
" | sudo -u k8s tee -a /home/k8s/.bash_aliases
|
||||||
|
|
||||||
# microk8s.inspect
|
# microk8s.inspect
|
||||||
# troubleshooting steps on Debian
|
# troubleshooting steps on Debian
|
||||||
@@ -47,7 +59,6 @@ if [ "$1" = on ]; then
|
|||||||
sudo ufw allow 16443 comment "microk8s"
|
sudo ufw allow 16443 comment "microk8s"
|
||||||
sudo ufw allow 10443 comment "kubernetes-dashboard"
|
sudo ufw allow 10443 comment "kubernetes-dashboard"
|
||||||
|
|
||||||
SSDmount="/mnt/ext"
|
|
||||||
## part of the docker install script
|
## part of the docker install script
|
||||||
# echo "### 3) Symlink the working directory to the SSD"
|
# echo "### 3) Symlink the working directory to the SSD"
|
||||||
sudo systemctl stop docker
|
sudo systemctl stop docker
|
||||||
@@ -76,13 +87,13 @@ if [ "$1" = on ]; then
|
|||||||
|
|
||||||
microk8s enable helm
|
microk8s enable helm
|
||||||
microk8s enable dns
|
microk8s enable dns
|
||||||
microk8s enable dashboard
|
#microk8s enable dashboard
|
||||||
microk8s enable storage
|
microk8s enable storage
|
||||||
microk8s enable ingress
|
microk8s enable ingress
|
||||||
microk8s enable registry
|
#microk8s enable registry
|
||||||
|
|
||||||
# make the config permanent
|
# make the config permanent
|
||||||
microk8s config > ~/.kube/config
|
microk8s config > /home/k8s/.kube/config
|
||||||
sudo chmod 0600 /home/k8s/.kube/config
|
sudo chmod 0600 /home/k8s/.kube/config
|
||||||
|
|
||||||
# helm
|
# helm
|
||||||
@@ -93,7 +104,7 @@ if [ "$1" = off ]; then
|
|||||||
|
|
||||||
helm uninstall galoy
|
helm uninstall galoy
|
||||||
sudo snap remove helm
|
sudo snap remove helm
|
||||||
microk8s reset [--destroy-storage]
|
microk8s reset # --destroy-storage
|
||||||
microk8s stop
|
microk8s stop
|
||||||
sudo snap remove microk8s
|
sudo snap remove microk8s
|
||||||
sudo apt remove -y snapd --purge
|
sudo apt remove -y snapd --purge
|
||||||
|
|||||||
Reference in New Issue
Block a user