Jumat, 20 September 2024

Installing Istio on MicroK8s for AArch64 / ARM Processors

Issue : Istio tidak tersedia di microk8s untuk architectur aarch / arm

[root@yys-oci ~]# microk8s.enable istio
Addon istio was not found in any repository
[root@yys-oci istio-1.23.0]# export PATH=$PWD/bin:$PATH
[root@yys-oci istio-1.23.0]# istioctl install --set profile=default -y
        |\          
        | \         
        |  \        
        |   \       
      /||    \      
     / ||     \     
    /  ||      \    
   /   ||       \                                                    
  /    ||        \                                                   
 /     ||         \                                                  
/______||__________\                                                 
  \__       _____/                                                   
     \_____/
Error: check minimum supported Kubernetes version: error getting Kubernetes version: Get "http://localhost:8080/version?timeout=5s": dial tcp [::1]:8080: connect: connection refused
[root@yys-oci istio-1.23.0]#


Solving

  1. Login Rancher

  2. Open Kubectl Shell Rancher



  3. Download istio

    > curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.23.0 TARGET_ARCH=aarch64 sh -
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   102  100   102    0     0   1767      0 --:--:-- --:--:-- --:--:--  1821
    100  4899  100  4899    0     0   6358      0 --:--:-- --:--:-- --:--:-- 14845 
    Downloading istio-1.23.0 from https://github.com/istio/istio/releases/download/1.23.0/istio-1.23.0-linux-arm64.tar.gz ...
    Istio 1.23.0 Download Complete!
    Istio has been successfully downloaded into the istio-1.23.0 folder on your system.
    Next Steps:
    See https://istio.io/latest/docs/setup/install/ to add Istio to your Kubernetes cluster.
    To configure the istioctl client tool for your workstation,
    add the /home/shell/istio-1.23.0/bin directory to your environment path variable with:
             export PATH="$PATH:/home/shell/istio-1.23.0/bin"
    Begin the Istio pre-installation check by running:
             istioctl x precheck
    Need more information? Visit https://istio.io/latest/docs/setup/install/


  4. Masuk Dir istio dan lakukan export

    > cd istio-1.23.0/
    > export PATH=$PWD/bin:$PATH
    >


  5. Install istio

    > istioctl install --set profile=default -y
            |\
            | \
            |  \
            |   \
          /||    \
         / ||     \
        /  ||      \
       /   ||       \
      /    ||        \
     /     ||         \
    /______||__________\
    ____________________
      \__       _____/  
         \_____/        
     
    ✔ Istio core installe
    ✔ Istiod installe
    ✔ Ingress gateways installe
    ✔Installation complete                                                      
    Made this installation the default for cluster-wide operations.
    >


  6. Pengecekan Service Istio

    # Run kubectl commands inside here

    # e.g. kubectl get all

    > kubectl get pod -A | grep istio

    istio-system istio-ingressgateway-58bc8c7d89-l6pqj 1/1 Running   0             13d

    istio-system istiod-5df659df75-p6l5c               1/1 Running   0             13d

    >




Tidak ada komentar:

Posting Komentar