Verified Commit abeea288 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

added cluster-info target and update eks GA cli.

parent ddc1448c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ ifndef AWS_PROFILE
	missing_vars := ${missing_vars} AWS_PROFILE
endif


ifndef TILLER_IMAGE
	TILLER_IMAGE := gcr.io/kubernetes-helm/tiller:v2.9.1
endif
@@ -26,10 +25,15 @@ my-token: ## Get my AWS IAM token to login to Kubernetes
	
.PHONY: describe-cluster
describe-cluster: ## Check EKS cluster settings
	@aws eks describe-cluster --cluster-name ${CLUSTER_NAME} --query cluster
	aws eks describe-cluster --name ${CLUSTER_NAME} --query cluster
list-clusters: ## show all EKS clusters
	@aws eks list-clusters

.PHONY: cluster-info
cluster-info: ## show EKS cluster info
	@kubectl cluster-info
	@kubectl get all --all-namespaces

.PHONY: get-images
get-images: ## List all images running in the cluster
	@kubectl get pods --all-namespaces -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c