mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-31 16:11:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| if [ -z "${KUBECONFIG}" ]; then
 | |
|     KUBECONFIG=~/.kube/config
 | |
| fi
 | |
| 
 | |
| kctl() {
 | |
|     kubectl --kubeconfig="$KUBECONFIG" -n "monitoring" "$@"
 | |
| }
 | |
| 
 | |
| kctl delete -f manifests/exporters
 | |
| kctl delete -f manifests/grafana
 | |
| kctl delete -f manifests/prometheus
 | |
| 
 | |
| # Hack: wait a bit to let the controller delete the deployed Prometheus server.
 | |
| sleep 5
 | |
| 
 | |
| kctl delete -f manifests/prometheus-operator.yaml
 |