k8s chart links update

This commit is contained in:
openoms
2022-06-08 11:09:46 +01:00
parent 3444b1e706
commit 6fdd0230ae
4 changed files with 28 additions and 18 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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