-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yml
50 lines (50 loc) · 937 Bytes
/
manifest.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
50
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp-deployment
spec:
selector:
matchLabels:
app: webapp-deployment
replicas: 1
template:
metadata:
labels:
app: webapp-deployment
spec:
containers:
- name: api
image: yunusemrecatalcam/ci-cd-webapp:latest
ports:
- containerPort: 8000
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: webapp-service
spec:
type: NodePort
ports:
- port: 8000
targetPort: 8000
name: http
selector:
app: webapp-deployment
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: webapp-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: webapp2.scrapesoup.com
http:
paths:
- path: /
backend:
serviceName: webapp-service
servicePort: 8000