forked from maya-a-iuga/Web-App-DevOps-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-manifest.yaml
More file actions
38 lines (38 loc) · 882 Bytes
/
application-manifest.yaml
File metadata and controls
38 lines (38 loc) · 882 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-app-deployment
spec:
replicas: 2
selector:
matchLabels:
app: flask-app
template:
metadata:
labels:
app: flask-app
spec:
containers:
- name: flask-app-container
image: danilvorobjov/project:latest
imagePullPolicy: Always
ports:
- containerPort: 5000
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
---
apiVersion: v1
kind: Service
metadata:
name: flask-app-service
spec:
selector:
app: flask-app
ports:
- protocol: TCP # known Transmission Control Protocol, is a core protocol of the Internet Protocol (IP) suite.
port: 80 # It provides a reliable connection-oriented communication service between two devices on a network.
targetPort: 5000
type: ClusterIP