mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 10:01:03 +01:00 
			
		
		
		
	git-subtree-dir: contrib/kube-prometheus git-subtree-mainline: 050ca21276696c8603375c699513ec487301ed62 git-subtree-split: 81c0d2f4d30f63a4e274c2870c5afc89241827b0
		
			
				
	
	
		
			35 lines
		
	
	
		
			594 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			594 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
kind: Service
 | 
						|
apiVersion: v1
 | 
						|
metadata: 
 | 
						|
  name: example-app
 | 
						|
  labels:
 | 
						|
    tier: frontend
 | 
						|
spec: 
 | 
						|
  selector: 
 | 
						|
    app: example-app 
 | 
						|
  ports:
 | 
						|
  - name: web
 | 
						|
    protocol: TCP
 | 
						|
    port: 8080
 | 
						|
    targetPort: web
 | 
						|
---
 | 
						|
apiVersion: extensions/v1beta1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: example-app
 | 
						|
spec:
 | 
						|
  replicas: 4
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: example-app
 | 
						|
        version: 1.1.3
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
      - name: example-app 
 | 
						|
        image: quay.io/fabxc/prometheus_demo_service
 | 
						|
        ports:
 | 
						|
        - name: web
 | 
						|
          containerPort: 8080
 | 
						|
          protocol: TCP
 |