You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
694 B
41 lines
694 B
3 months ago
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: example-app
|
||
|
labels:
|
||
|
tier: frontend
|
||
|
namespace: default
|
||
|
spec:
|
||
|
selector:
|
||
|
app: example-app
|
||
|
ports:
|
||
|
- name: web
|
||
|
protocol: TCP
|
||
|
port: 8080
|
||
|
targetPort: web
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: example-app
|
||
|
namespace: default
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: example-app
|
||
|
version: 1.1.3
|
||
|
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
|