Add reuse service landing page
This commit is contained in:
parent
b76cdb53a8
commit
b859530fcf
14 changed files with 589 additions and 12 deletions
59
charts/reuse-surface/templates/landing-deployment.yaml
Normal file
59
charts/reuse-surface/templates/landing-deployment.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{{- if .Values.landing.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "reuse.landingFullname" . }}
|
||||
labels:
|
||||
{{- include "reuse.labels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: landing
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "reuse.landingSelectorLabels" . | nindent 6 }}
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "reuse.landingSelectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: landing
|
||||
image: {{ include "reuse.landingImage" . | quote }}
|
||||
imagePullPolicy: {{ .Values.landing.image.pullPolicy }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.landing.service.targetPort }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
resources: {{- toYaml .Values.landing.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: landing-page
|
||||
mountPath: /usr/share/nginx/html/index.html
|
||||
subPath: index.html
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: landing-page
|
||||
configMap:
|
||||
name: {{ include "reuse.landingFullname" . }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue