generated from Templates/html-nginx-deployment
Bootstrapped from template.
Some checks failed
Home Cluster Builds/wedding-page/pipeline/head There was a failure building this commit
Some checks failed
Home Cluster Builds/wedding-page/pipeline/head There was a failure building this commit
This commit is contained in:
3
cicd/stage/Dockerfile
Normal file
3
cicd/stage/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM 192.168.195.195:30001/nginx:latest
|
||||
|
||||
COPY html /usr/share/nginx/html
|
||||
51
cicd/stage/deployment.yaml
Normal file
51
cicd/stage/deployment.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wedding-fe-stage-svc
|
||||
namespace: apps
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: wedding-fe-stage
|
||||
ports:
|
||||
- name: http
|
||||
nodePort: 31012
|
||||
port: 80
|
||||
targetPort: 80
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wedding-fe-stage
|
||||
namespace: apps
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 1
|
||||
type: RollingUpdate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wedding-fe-stage
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wedding-fe-stage
|
||||
delpoymentDate: "{{replaceMe}}"
|
||||
spec:
|
||||
containers:
|
||||
- name: wedding-fe-stage
|
||||
image: 192.168.195.195:30000/wedding-fe:stage
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
Reference in New Issue
Block a user