Set the values generic
This commit is contained in:
parent
11e0435158
commit
61adc336e5
12
charts/dvirlabs-landing-chart/templates/configmap.yaml
Normal file
12
charts/dvirlabs-landing-chart/templates/configmap.yaml
Normal 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 }}
|
||||
@ -19,8 +19,8 @@ spec:
|
||||
app.kubernetes.io/name: {{ include "dvirlabs-landing.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
@ -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" . }}
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user