Adding maintenance page
This commit is contained in:
parent
06d8218b8b
commit
c6ae7334f3
3 changed files with 102 additions and 0 deletions
2
scripts/dockerfiles/maintnance/Dockerfile
Normal file
2
scripts/dockerfiles/maintnance/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FROM nginx:alpine
|
||||
COPY index.html usr/share/nginx/html/index.html
|
||||
18
scripts/dockerfiles/maintnance/index.html
Normal file
18
scripts/dockerfiles/maintnance/index.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<title>Site Maintenance</title>
|
||||
<style>
|
||||
body { text-align: center; padding: 150px; }
|
||||
h1 { font-size: 50px; }
|
||||
body { font: 20px Helvetica, sans-serif; color: #333; }
|
||||
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
|
||||
a { color: #dc8100; text-decoration: none; }
|
||||
a:hover { color: #333; text-decoration: none; }
|
||||
</style>
|
||||
|
||||
<article>
|
||||
<h1>We’ll be back soon!</h1>
|
||||
<div>
|
||||
<p>Sorry for the inconvenience but we’re performing some maintenance at the moment. We’ll be back online shortly!</p>
|
||||
<p>— The Team</p>
|
||||
</div>
|
||||
</article>
|
||||
82
scripts/dockerfiles/maintnance/manifest.yaml
Normal file
82
scripts/dockerfiles/maintnance/manifest.yaml
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: maintenance-page
|
||||
namespace: app
|
||||
labels:
|
||||
app: maintenance-page
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: maintenance-page
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: maintenance-page
|
||||
spec:
|
||||
containers:
|
||||
- name: maintenance-page
|
||||
image: rjshrjndrn/maintenance
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
periodSeconds: 10
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
---
|
||||
# https://kubernetes.io/docs/concepts/services-networking/service/
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: maintenance-page
|
||||
namespace: app
|
||||
spec:
|
||||
selector:
|
||||
app: maintenance-page
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: maintenance-page
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
# https://kubernetes.io/docs/concepts/services-networking/ingress/
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: maintenance-page
|
||||
namespace: app
|
||||
spec:
|
||||
ingressClassName: openreplay
|
||||
rules:
|
||||
- host: example.domain.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: maintenance-page
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
|
||||
Loading…
Add table
Reference in a new issue