mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-31 16:11:01 +01:00 
			
		
		
		
	For `--dry-run` to work with kubectl a Kubernetes cluster's apiserver is actually used, which is unnecessary for generating these manifests. This approach also allows further customization, such as adding labels to the generated manifests.
		
			
				
	
	
		
			12 lines
		
	
	
		
			183 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			183 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| cat <<-EOF
 | |
| apiVersion: v1
 | |
| kind: Secret
 | |
| metadata:
 | |
|   name: alertmanager-main
 | |
| data:
 | |
|   alertmanager.yaml: $(cat assets/alertmanager/alertmanager.yaml | base64 --wrap=0)
 | |
| EOF
 | |
| 
 |