Add dvirlabs-landing app
This commit is contained in:
parent
fbc5b730cc
commit
fe202120c5
0
argocd-apps/dvirlabs-landing.yaml
Normal file
0
argocd-apps/dvirlabs-landing.yaml
Normal file
6
charts/dvirlabs-landing-chart/Chart.yaml
Normal file
6
charts/dvirlabs-landing-chart/Chart.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: dvirlabs-landing
|
||||
description: Simple static landing page for dvirlabs.com
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
15
charts/dvirlabs-landing-chart/templates/_helpers.tpl
Normal file
15
charts/dvirlabs-landing-chart/templates/_helpers.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
{{- define "dvirlabs-landing.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "dvirlabs-landing.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name (include "dvirlabs-landing.name" .) | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "dvirlabs-landing.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
||||
{{- end }}
|
||||
35
charts/dvirlabs-landing-chart/templates/deployment.yaml
Normal file
35
charts/dvirlabs-landing-chart/templates/deployment.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "dvirlabs-landing.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
helm.sh/chart: {{ include "dvirlabs-landing.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: dvirlabs-landing
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
42
charts/dvirlabs-landing-chart/templates/ingress.yaml
Normal file
42
charts/dvirlabs-landing-chart/templates/ingress.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "dvirlabs-landing.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.ingress.className }}
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ .host | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- range .paths }}
|
||||
- path: {{ .path }}
|
||||
pathType: {{ .pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "dvirlabs-landing.fullname" $ }}
|
||||
port:
|
||||
number: {{ $.Values.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{- range .Values.ingress.tls }}
|
||||
- secretName: {{ .secretName }}
|
||||
hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
17
charts/dvirlabs-landing-chart/templates/service.yaml
Normal file
17
charts/dvirlabs-landing-chart/templates/service.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "dvirlabs-landing.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
42
charts/dvirlabs-landing-chart/values.yaml
Normal file
42
charts/dvirlabs-landing-chart/values.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: registry.dvirlabs.com/dvirlabs/landing
|
||||
tag: "v1"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: traefik # or whatever your ingressClass is
|
||||
annotations: {}
|
||||
# Example if you need it:
|
||||
# kubernetes.io/ingress.class: "traefik"
|
||||
hosts:
|
||||
- host: dvirlabs.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls: []
|
||||
# - secretName: dvirlabs-com-tls
|
||||
# hosts:
|
||||
# - dvirlabs.com
|
||||
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# requests:
|
||||
# cpu: 50m
|
||||
# memory: 64Mi
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: api-labmap
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://api-labmap.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://api-labmap.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: api-navix
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://api-navix.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://api-navix.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: chai1
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://chai1.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://chai1.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: chai2
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://chai2.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://chai2.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: chai3
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://chai3.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://chai3.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
42
manifests/dvirlabs-landing/values.yaml
Normal file
42
manifests/dvirlabs-landing/values.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: registry.dvirlabs.com/dvirlabs/landing
|
||||
tag: "v1"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: traefik # or whatever your ingressClass is
|
||||
annotations: {}
|
||||
# Example if you need it:
|
||||
# kubernetes.io/ingress.class: "traefik"
|
||||
hosts:
|
||||
- host: dvirlabs.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls: []
|
||||
# - secretName: dvirlabs-com-tls
|
||||
# hosts:
|
||||
# - dvirlabs.com
|
||||
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# requests:
|
||||
# cpu: 50m
|
||||
# memory: 64Mi
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
||||
@ -1,15 +0,0 @@
|
||||
enabled: true
|
||||
app: home
|
||||
uptime_kuma:
|
||||
enabled: true
|
||||
url: https://home.dvirlabs.com
|
||||
tag: my-apps
|
||||
external_check:
|
||||
url: https://home.dvirlabs.com
|
||||
expected_codes:
|
||||
'502': critical
|
||||
'404': warning
|
||||
'1033': critical
|
||||
# targets:
|
||||
# - <exporter-host>:<port>
|
||||
# scheme: http
|
||||
Loading…
x
Reference in New Issue
Block a user