- A Google Cloud Account
- Installing Google Cloud SDK on your macOS
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.
gcloud container clusters create k8s-lab1 --disk-size 10 --zone asia-east1-a --machine-type n1-standard-2 --num-nodes 3 --scopes compute-rw
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
krs init
Services initialized and scanner loaded.
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 |
+-------------+--------+-----------------------------+---------------+
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 |
git clone https://github.com/benc-uk/kubeview
cd kubeview/charts/
helm install kubeview kubeview
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 |
+-------------+--------+-----------------------------+---------------+