Loading makefile_parts/kube-addons.mk +7 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ ifndef TEMPLATES missing_vars := ${missing_vars} TEMPLATES endif ifndef SA_NAME missing_vars := ${missing_vars} SA_NAME endif -include vault-login -include config-kube ################################### ### Kubernetes dashboard provision Loading Loading @@ -58,9 +63,9 @@ ui: dashboard ## kubectl proxy and open dashboard ui @echo "Please 'make kill-ui' to close kube proxy connection" .PHONY: admin-token admin-token: TOKEN_NAME=$$(kubectl get sa -n kube-system eks-admin -o json | jq -r '.secrets[].name') admin-token: TOKEN_NAME=$$(kubectl get sa -n kube-system ${SA_NAME} -o json | jq -r '.secrets[].name') admin-token: ## Get admin-token to login to dashboard @kubectl describe secret -n kube-system ${TOKEN_NAME} | grep ^token: kubectl describe secret -n kube-system ${TOKEN_NAME} | grep ^token: .PHONY: kill-ui kill-ui: ## Close Kube dashboard connection Loading Loading
makefile_parts/kube-addons.mk +7 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ ifndef TEMPLATES missing_vars := ${missing_vars} TEMPLATES endif ifndef SA_NAME missing_vars := ${missing_vars} SA_NAME endif -include vault-login -include config-kube ################################### ### Kubernetes dashboard provision Loading Loading @@ -58,9 +63,9 @@ ui: dashboard ## kubectl proxy and open dashboard ui @echo "Please 'make kill-ui' to close kube proxy connection" .PHONY: admin-token admin-token: TOKEN_NAME=$$(kubectl get sa -n kube-system eks-admin -o json | jq -r '.secrets[].name') admin-token: TOKEN_NAME=$$(kubectl get sa -n kube-system ${SA_NAME} -o json | jq -r '.secrets[].name') admin-token: ## Get admin-token to login to dashboard @kubectl describe secret -n kube-system ${TOKEN_NAME} | grep ^token: kubectl describe secret -n kube-system ${TOKEN_NAME} | grep ^token: .PHONY: kill-ui kill-ui: ## Close Kube dashboard connection Loading