You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/11/17 09:37:05 UTC

[skywalking-showcase] branch main updated: Add missing uninstall command for istio and kube-state-metrics (#9)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git


The following commit(s) were added to refs/heads/main by this push:
     new 24dd67b  Add missing uninstall command for istio and kube-state-metrics (#9)
24dd67b is described below

commit 24dd67b5350f98e390a8b9d22af609b68626edb6
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Wed Nov 17 17:33:13 2021 +0800

    Add missing uninstall command for istio and kube-state-metrics (#9)
---
 deploy/platform/kubernetes/features.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/deploy/platform/kubernetes/features.mk b/deploy/platform/kubernetes/features.mk
index 8bb59bd..329c425 100644
--- a/deploy/platform/kubernetes/features.mk
+++ b/deploy/platform/kubernetes/features.mk
@@ -60,12 +60,24 @@ deploy.feature-als: prerequisites
 undeploy.feature-als:
 	$(eval TAG := $(TAG)-agentless)
 	$(MAKE) undeploy FEATURE_FLAGS=agent TAG=$(TAG)-agentless NAMESPACE=$(NAMESPACE)-agentless AGENTLESS=true
+	istioctl x uninstall --purge -y
 
 # @feature: kubernetes-monitor; extra resources to install for kubernetes monitoring, standard kube-state-metrics
 .PHONY: feature-kubernetes-monitor
 feature-kubernetes-monitor:
+
+.PHONY: deploy.feature-kubernetes-monitor
+deploy.feature-kubernetes-monitor:
 	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service-account.yaml
 	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role.yaml
 	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role-binding.yaml
 	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service.yaml
 	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/deployment.yaml
+
+.PHONY: undeploy.feature-kubernetes-monitor
+undeploy.feature-kubernetes-monitor:
+	@kubectl delete -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service-account.yaml
+	@kubectl delete -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role.yaml
+	@kubectl delete -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role-binding.yaml
+	@kubectl delete -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service.yaml
+	@kubectl delete -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/deployment.yaml