forked from sathishbob/functional-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
49 lines (49 loc) · 889 Bytes
/
deploy.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: complete-cicd-tomcat-deployment
labels:
app: tomcat
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
containers:
- name: tomcat
image: zippyops01/cicd-dockerimage:latest
ports:
- containerPort: 8080
---
kind: Service
apiVersion: v1
metadata:
name: complete-cicd-tomcat-service
spec:
selector:
app: tomcat
ports:
- protocol: TCP
port: 8080
nodePort: 30012
type: LoadBalancer
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: complete-cicd-tomcat-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /app
backend:
serviceName: tomcat-service
servicePort: 8080