28 lines
595 B
YAML
28 lines
595 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-app
|
|
namespace: first-test
|
|
labels:
|
|
app: test-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: test-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: test-app
|
|
annotations:
|
|
prometheus.deckhouse.io/custom-target: "test-app"
|
|
prometheus.deckhouse.io/port: "5000"
|
|
spec:
|
|
containers:
|
|
- name: test-app
|
|
image: docker-local-devops.art.lmru.tech/test-network-policies:v0.1
|
|
ports:
|
|
- name: http
|
|
containerPort: 5000
|
|
imagePullPolicy: Always
|