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,8 +19,8 @@ spec:
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }} app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
imagePullSecrets:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
containers: containers:
@ -33,3 +33,11 @@ spec:
protocol: TCP protocol: TCP
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- 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 replicaCount: 1
image: image:
repository: registry.dvirlabs.com/dvirlabs/landing repository: harbor.dvirlabs.com/my-apps/dvirlabs-landing
tag: "v1" tag: "master-2ee2f13"
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
imagePullSecrets: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
@ -15,28 +13,23 @@ service:
ingress: ingress:
enabled: true enabled: true
className: traefik # or whatever your ingressClass is className: traefik
annotations: {} annotations: {}
# Example if you need it:
# kubernetes.io/ingress.class: "traefik"
hosts: hosts:
- host: dvirlabs.com - host: dvirlabs.com
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: [] tls: []
# - secretName: dvirlabs-com-tls
# hosts:
# - dvirlabs.com
resources: {} resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 50m
# memory: 64Mi
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} 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: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
ingress: ingress:
enabled: true enabled: true
className: traefik # or whatever your ingressClass is className: traefik
annotations: {} annotations: {}
# Example if you need it:
# kubernetes.io/ingress.class: "traefik"
hosts: hosts:
- host: dvirlabs.com - host: dvirlabs.com
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: [] tls: []
# - secretName: dvirlabs-com-tls
# hosts:
# - dvirlabs.com
resources: {} resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 50m
# memory: 64Mi
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
links:
gitea: "https://git.dvirlabs.com"
grafana: "https://grafana.dvirlabs.com"
argocd: "https://argocd.dvirlabs.com"
wiki: "https://wiki.dvirlabs.com"