diff --git a/Makefile-az.mk b/Makefile-az.mk index 9feaed157..324ac665c 100755 --- a/Makefile-az.mk +++ b/Makefile-az.mk @@ -18,7 +18,7 @@ KARPENTER_FEDERATED_IDENTITY_CREDENTIAL_NAME ?= KARPENTER_FID CUSTOM_VNET_NAME ?= $(AZURE_CLUSTER_NAME)-vnet CUSTOM_SUBNET_NAME ?= nodesubnet -az-all: az-login az-create-workload-msi az-mkaks-cilium az-create-federated-cred az-perm az-perm-acr az-configure-values az-build az-run az-run-sample ## Provision the infra (ACR,AKS); build and deploy Karpenter; deploy sample Provisioner and workload +az-all: az-login az-create-workload-msi az-mkaks-cilium az-create-federated-cred az-perm az-perm-acr az-configure-values az-build az-run az-run-sample ## Provision the infra (ACR,AKS); build and deploy Karpenter; deploy sample Provisioner and workload az-all-cniv1: az-login az-create-workload-msi az-mkaks-cniv1 az-create-federated-cred az-perm az-perm-acr az-configure-values az-build az-run az-run-sample ## Provision the infra (ACR,AKS); build and deploy Karpenter; deploy sample Provisioner and workload @@ -46,9 +46,9 @@ az-mkacr: az-mkrg ## Create test ACR az-acrimport: ## Imports an image to an acr registry az acr import --name $(AZURE_ACR_NAME) --source "mcr.microsoft.com/oss/kubernetes/pause:3.6" --image "pause:3.6" -az-cleanenv: az-rmnodeclaims-fin ## Deletes a few common karpenter testing resources(pods, nodepools, nodeclaims, aksnodeclasses) +az-cleanenv: az-rmnodeclaims-fin ## Deletes a few common karpenter testing resources(pods, nodepools, nodeclaims, aksnodeclasses) kubectl delete pods -n default --all - kubectl delete nodeclaims --all + kubectl delete nodeclaims --all kubectl delete nodepools --all kubectl delete aksnodeclasses --all @@ -319,10 +319,14 @@ az-kdebug: ## Inject ephemeral debug container (kubectl debug) into Karpenter po $(eval POD=$(shell kubectl get pods -l app.kubernetes.io/name=karpenter -n "${KARPENTER_NAMESPACE}" -o name)) kubectl debug -n "${KARPENTER_NAMESPACE}" $(POD) --image wbitt/network-multitool -it -- sh -az-klogs: ## Karpenter logs +az-klogs-watch: ## Watch Karpenter logs $(eval POD=$(shell kubectl get pods -l app.kubernetes.io/name=karpenter -n "${KARPENTER_NAMESPACE}" -o name)) kubectl logs -f -n "${KARPENTER_NAMESPACE}" $(POD) +az-klogs-pretty: ## Pretty Print Karpenter logs + $(eval POD=$(shell kubectl get pods -l app.kubernetes.io/name=karpenter -n "${KARPENTER_NAMESPACE}" -o name)) + kubectl logs -n "${KARPENTER_NAMESPACE}" $(POD) | jq "." + az-kevents: ## Karpenter events kubectl get events -A --field-selector source=karpenter