Google's GKE
Effortlessly optimize your GKE cluster with KRS. This powerful tool, running locally on your machine, analyzes your GKE cluster for improvement. Leverage KRS to gain valuable insights and recommendations for a smoother Kubernetes experience.
Prerequisite
- A Google Cloud Account
- Installing Google Cloud SDK on your macOS
Getting Started
Execute the following command to install Google Cloud SDK in your system
tar xfz google-cloud-sdk-195.0.0-darwin-x86_64.tar.gz ./google-cloud-sdk/install.sh
Enable Google Cloud Engine API
Authenticate Your Google Cloud using gcloud auth
gcloud init
In your browser, log in to your Google user account when prompted and click Allow to grant permission to access Google Cloud Platform resources.
Creating GKE Cluster
gcloud container clusters create k8s-lab1 --disk-size 10 --zone asia-east1-a --machine-type n1-standard-2 --num-nodes 3 --scopes compute-rw
Viewing it on Google Cloud Platform
Viewing the new context on Docker Desktop
Verifying the Google Kubernetes Cluster
kubectl get nodes NAME STATUS ROLES AGE VERSION gke-k8s-lab1-default-pool-5dfb7153-3fr7 Ready <none> 3m1s v1.29.4-gke.1043002 gke-k8s-lab1-default-pool-5dfb7153-nl3v Ready <none> 3m1s v1.29.4-gke.1043002 gke-k8s-lab1-default-pool-5dfb7153-rkg8 Ready <none> 3m2s v1.29.4-gke.1043002
Initialize the KRS
krs init Services initialized and scanner loaded.
Running the scanner
krs scan Scanning your cluster... Cluster scanned successfully... Extracted tools used in cluster... The cluster is using the following tools: +-------------+--------+-----------------------------+---------------+ | Tool Name | Rank | Category | CNCF Status | +=============+========+=============================+===============+ | autoscaler | 5 | Cluster with Core CLI tools | unlisted | +-------------+--------+-----------------------------+---------------+ | fluentbit | 4 | Logging and Tracing | unlisted | +-------------+--------+-----------------------------+---------------+
Checking the Krs Recommendation
krs recommend Our recommended tools for this deployment are: +-----------------------------+------------------+-------------+---------------+ | Category | Recommendation | Tool Name | CNCF Status | +=============================+==================+=============+===============+ | Cluster with Core CLI tools | Recommended tool | k9s | unlisted | +-----------------------------+------------------+-------------+---------------+ | Logging and Tracing | Recommended tool | elk | unlisted |
Installing Kubeview
git clone https://github.com/benc-uk/kubeview cd kubeview/charts/ helm install kubeview kubeview
Running the scanner again
krs scan Scanning your cluster... Cluster scanned successfully... Extracted tools used in cluster... The cluster is using the following tools: +-------------+--------+-----------------------------+---------------+ | Tool Name | Rank | Category | CNCF Status | +=============+========+=============================+===============+ | kubeview | 30 | Cluster with Core CLI tools | unlisted | +-------------+--------+-----------------------------+---------------+ | | 3 | Cluster Management | unlisted | +-------------+--------+-----------------------------+---------------+ | autoscaler | 5 | Cluster with Core CLI tools | unlisted | +-------------+--------+-----------------------------+---------------+ | fluentbit | 4 | Logging and Tracing | unlisted | +-------------+--------+-----------------------------+---------------+
Discover other KRS commands
krs --help
krs --help Usage: krs [OPTIONS] COMMAND [ARGS]... ** krs: A command line interface to scan your Kubernetes Cluster, detect errors, provide resolutions using LLMs and recommend latest tools for your cluster ╭─ Options ────────────────────────────────────────────────────────────────────╮ │ --install-completion Install completion for the current shell. ** │ │ --show-completion Show completion for the current shell, to copy │ │ it or customize the installation. ** │ │ --help Show this message and exit. ** │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │ exit Ends krs services safely and deletes all state files from │ │ system. **Removes all cached data. ** │ │ export Exports pod info with logs and events. ** │ │ health Starts an interactive terminal using an LLM of your choice to │ │ detect and fix issues with your cluster │ │ init Initializes the services and loads the scanner. ** │ │ namespaces Lists all the namespaces. ** │ │ pods Lists all the pods with namespaces, or lists pods under a │ │ specified namespace. ** │ │ recommend Generates a table of recommended tools from our ranking │ │ database and their CNCF project status. ** │ │ scan Scans the cluster and extracts a list of tools that are │ │ currently used. ** │ ╰──────────────────────────────────────────────────────────────────────────────╯
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.