Added staging
This commit is contained in:
20
k8s/stage/deployment.yaml
Normal file
20
k8s/stage/deployment.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: flask-app
|
||||||
|
namespace: staging
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: flask-app
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: flask-app
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: flask-app
|
||||||
|
image: PLACEHOLDER_IMAGE
|
||||||
|
ports:
|
||||||
|
- containerPort: 5000
|
||||||
4
k8s/stage/namespace.yaml
Normal file
4
k8s/stage/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: staging
|
||||||
13
k8s/stage/service.yaml
Normal file
13
k8s/stage/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flask-app-service
|
||||||
|
namespace: staging
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: flask-app
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 5000
|
||||||
|
type: ClusterIP
|
||||||
Reference in New Issue
Block a user