forked from Azure-Samples/openhack-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbad-app.yaml
52 lines (52 loc) · 1023 Bytes
/
bad-app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: insurance-deployment
namespace: api-dev
labels:
deploy: insurance
spec:
replicas: 1
selector:
matchLabels:
app: insurance
template:
metadata:
labels:
app: insurance
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/"
prometheus.io/port: "80"
prometheus.io/scheme: "http"
spec:
containers:
- image: "registrykty1185.azurecr.io/insurance:1.0"
imagePullPolicy: Always
name: insurance
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
---
apiVersion: v1
kind: Service
metadata:
name: insurance
namespace: api-dev
spec:
type: ClusterIP
selector:
app: insurance
ports:
- protocol: TCP
name: insurance-http
port: 80
targetPort: 80