From 6fdd0230aec60f8c9a05a1a74c2323cf19a996bc Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 8 Jun 2022 11:09:46 +0100 Subject: [PATCH] k8s chart links update --- k8s/README.md | 2 +- k8s/galoy.mainnet.sh | 2 +- k8s/galoy.testnet.sh | 3 +-- k8s/install.microk8s.sh | 39 +++++++++++++++++++++++++-------------- 4 files changed, 28 insertions(+), 18 deletions(-) diff --git a/k8s/README.md b/k8s/README.md index 8d754ff..3fc32e0 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -135,7 +135,7 @@ sudo snap install helm --classic ## 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/ helm repo add bitnami https://charts.bitnami.com/bitnami diff --git a/k8s/galoy.mainnet.sh b/k8s/galoy.mainnet.sh index 2f4297c..74604a4 100644 --- a/k8s/galoy.mainnet.sh +++ b/k8s/galoy.mainnet.sh @@ -1,5 +1,5 @@ # 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/ helm repo add bitnami https://charts.bitnami.com/bitnami diff --git a/k8s/galoy.testnet.sh b/k8s/galoy.testnet.sh index c8b1454..758ae57 100644 --- a/k8s/galoy.testnet.sh +++ b/k8s/galoy.testnet.sh @@ -16,7 +16,7 @@ sudo systemctl restart tbitcoind ############ ## 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/ helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update @@ -208,7 +208,6 @@ if [ "$1" = off ]; then # delete the manually generated secrets kubectl -n test delete secret galoy-mongodb - fi diff --git a/k8s/install.microk8s.sh b/k8s/install.microk8s.sh index 0c43dca..92a3c75 100644 --- a/k8s/install.microk8s.sh +++ b/k8s/install.microk8s.sh @@ -9,8 +9,7 @@ if [ "$1" = on ]; then 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 sudo apt update @@ -21,16 +20,29 @@ if [ "$1" = on ]; then sudo ln -s ${SSDmount}/snap /var/snap 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 ~/.kube - newgrp microk8s + sudo chown -f -R k8s /home/k8s/.kube + # 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 # troubleshooting steps on Debian @@ -47,7 +59,6 @@ if [ "$1" = on ]; then sudo ufw allow 16443 comment "microk8s" sudo ufw allow 10443 comment "kubernetes-dashboard" - SSDmount="/mnt/ext" ## part of the docker install script # echo "### 3) Symlink the working directory to the SSD" sudo systemctl stop docker @@ -76,13 +87,13 @@ if [ "$1" = on ]; then microk8s enable helm microk8s enable dns - microk8s enable dashboard + #microk8s enable dashboard microk8s enable storage microk8s enable ingress - microk8s enable registry + #microk8s enable registry # make the config permanent - microk8s config > ~/.kube/config + microk8s config > /home/k8s/.kube/config sudo chmod 0600 /home/k8s/.kube/config # helm @@ -93,7 +104,7 @@ if [ "$1" = off ]; then helm uninstall galoy sudo snap remove helm - microk8s reset [--destroy-storage] + microk8s reset # --destroy-storage microk8s stop sudo snap remove microk8s sudo apt remove -y snapd --purge