Set the values generic

This commit is contained in:
dvirlabs 2025-11-26 03:25:34 +02:00
parent 11e0435158
commit 61adc336e5
4 changed files with 41 additions and 30 deletions

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "dvirlabs-landing.fullname" . }}
data:
index.html: |
{{- $html := .Files.Get "index.html" -}}
{{- range $key, $val := .Values.links }}
{{- $placeholder := printf "{{%s}}" $key -}}
{{- $html = replace $placeholder $val $html -}}
{{- end }}
{{- $html | nindent 4 }}

View File

@ -19,10 +19,10 @@ spec:
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: dvirlabs-landing
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@ -33,3 +33,11 @@ spec:
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html/index.html
subPath: index.html
volumes:
- name: html
configMap:
name: {{ include "dvirlabs-landing.fullname" . }}

View File

@ -1,10 +1,8 @@
replicaCount: 1
image:
repository: registry.dvirlabs.com/dvirlabs/landing
tag: "v1"
repository: harbor.dvirlabs.com/my-apps/dvirlabs-landing
tag: "master-2ee2f13"
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
@ -15,28 +13,23 @@ service:
ingress:
enabled: true
className: traefik # or whatever your ingressClass is
className: traefik
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: {}
links:
gitea: "https://git.dvirlabs.com"
grafana: "https://grafana.dvirlabs.com"
argocd: "https://argocd.dvirlabs.com"
wiki: "https://wiki.dvirlabs.com"

View File

@ -6,32 +6,30 @@ image:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
service:
type: ClusterIP
port: 80
ingress:
enabled: true
className: traefik # or whatever your ingressClass is
className: traefik
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: {}
links:
gitea: "https://git.dvirlabs.com"
grafana: "https://grafana.dvirlabs.com"
argocd: "https://argocd.dvirlabs.com"
wiki: "https://wiki.dvirlabs.com"