diff --git a/argocd-apps/dvirlabs-landing.yaml b/argocd-apps/dvirlabs-landing.yaml new file mode 100644 index 0000000..e69de29 diff --git a/charts/dvirlabs-landing-chart/Chart.yaml b/charts/dvirlabs-landing-chart/Chart.yaml new file mode 100644 index 0000000..5ac4ab8 --- /dev/null +++ b/charts/dvirlabs-landing-chart/Chart.yaml @@ -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" diff --git a/charts/dvirlabs-landing-chart/templates/_helpers.tpl b/charts/dvirlabs-landing-chart/templates/_helpers.tpl new file mode 100644 index 0000000..cc706f8 --- /dev/null +++ b/charts/dvirlabs-landing-chart/templates/_helpers.tpl @@ -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 }} diff --git a/charts/dvirlabs-landing-chart/templates/deployment.yaml b/charts/dvirlabs-landing-chart/templates/deployment.yaml new file mode 100644 index 0000000..fa4e536 --- /dev/null +++ b/charts/dvirlabs-landing-chart/templates/deployment.yaml @@ -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 }} diff --git a/charts/dvirlabs-landing-chart/templates/ingress.yaml b/charts/dvirlabs-landing-chart/templates/ingress.yaml new file mode 100644 index 0000000..0164f26 --- /dev/null +++ b/charts/dvirlabs-landing-chart/templates/ingress.yaml @@ -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 }} diff --git a/charts/dvirlabs-landing-chart/templates/service.yaml b/charts/dvirlabs-landing-chart/templates/service.yaml new file mode 100644 index 0000000..ca1f1ca --- /dev/null +++ b/charts/dvirlabs-landing-chart/templates/service.yaml @@ -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 }} diff --git a/charts/dvirlabs-landing-chart/values.yaml b/charts/dvirlabs-landing-chart/values.yaml new file mode 100644 index 0000000..78993a9 --- /dev/null +++ b/charts/dvirlabs-landing-chart/values.yaml @@ -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: {} diff --git a/manifests/api-labmap/monitoring.yaml b/manifests/api-labmap/monitoring.yaml deleted file mode 100644 index 76f1b9a..0000000 --- a/manifests/api-labmap/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http diff --git a/manifests/api-navix/monitoring.yaml b/manifests/api-navix/monitoring.yaml deleted file mode 100644 index f114f77..0000000 --- a/manifests/api-navix/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http diff --git a/manifests/chai1/monitoring.yaml b/manifests/chai1/monitoring.yaml deleted file mode 100644 index c876942..0000000 --- a/manifests/chai1/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http diff --git a/manifests/chai2/monitoring.yaml b/manifests/chai2/monitoring.yaml deleted file mode 100644 index 4c2682e..0000000 --- a/manifests/chai2/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http diff --git a/manifests/chai3/monitoring.yaml b/manifests/chai3/monitoring.yaml deleted file mode 100644 index ffd3276..0000000 --- a/manifests/chai3/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http diff --git a/manifests/dvirlabs-landing/values.yaml b/manifests/dvirlabs-landing/values.yaml new file mode 100644 index 0000000..78993a9 --- /dev/null +++ b/manifests/dvirlabs-landing/values.yaml @@ -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: {} diff --git a/manifests/home/monitoring.yaml b/manifests/home/monitoring.yaml deleted file mode 100644 index 7c73e98..0000000 --- a/manifests/home/monitoring.yaml +++ /dev/null @@ -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: -# - : -# scheme: http