forked from madhubkk/restapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestapp-manifest.yaml
43 lines (43 loc) · 904 Bytes
/
restapp-manifest.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: opsmx-restapp
spec:
replicas: 1
selector:
matchLabels:
app: opsmx-restapp
template:
metadata:
labels:
app: opsmx-restapp
spec:
containers:
- image: docker.io/opsmx11/restapp:${#stage("Build")["context"]["Buildnumber"]}
imagePullPolicy: Always
name: restapp
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 9090
name: prometheus
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: opsmx-rest-service
spec:
type: LoadBalancer
ports:
- port: 8080
targetPort: 8080
protocol: TCP
name: canary
- port: 9090
targetPort: 9090
protocol: TCP
name: reports
selector:
app: opsmx-restapp