46 lines
		
	
	
		
			995 B
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			995 B
		
	
	
	
		
			YAML
		
	
	
	
| apiVersion: networking.k8s.io/v1
 | |
| kind: Ingress
 | |
| metadata:
 | |
|   name: ingress-routes-prometheus
 | |
|   annotations:
 | |
|     cert-manager.io/cluster-issuer: "letsencrypt-prod"    
 | |
| spec:
 | |
|   tls:
 | |
|   - hosts:
 | |
|     - prometheus.jsnet.io
 | |
|     secretName: tls-secret-prometheus
 | |
|   rules:
 | |
|   - host: prometheus.jsnet.io 
 | |
|     http:
 | |
|       paths:
 | |
|         - path: /
 | |
|           pathType: Prefix
 | |
|           backend:
 | |
|             service:
 | |
|               name: kube-prom-stack-kube-prome-prometheus 
 | |
|               port:
 | |
|                 number: 9090 
 | |
| ---
 | |
| apiVersion: networking.k8s.io/v1
 | |
| kind: Ingress
 | |
| metadata:
 | |
|   name: ingress-routes-grafana
 | |
|   annotations:
 | |
|     cert-manager.io/cluster-issuer: "letsencrypt-prod"    
 | |
| spec:
 | |
|   tls:
 | |
|   - hosts:
 | |
|     - grafana.jsnet.io
 | |
|     secretName: tls-secret-grafana
 | |
|   rules:
 | |
|   - host: grafana.jsnet.io 
 | |
|     http:
 | |
|       paths:
 | |
|         - path: /
 | |
|           pathType: Prefix
 | |
|           backend:
 | |
|             service:
 | |
|               name: kube-prom-stack-grafana 
 | |
|               port:
 | |
|                 number: 80
 |