The current chart with katenarry 3.0.0-rc2
This commit is contained in:
41
chart/templates/NOTES.txt
Normal file
41
chart/templates/NOTES.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
Thanks to have installed {{ .Chart.Name }} {{ .Chart.Version }} as {{ .Release.Name }} ({{.Chart.AppVersion }}).
|
||||
|
||||
# Get release information
|
||||
|
||||
To learn more about the release, try:
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} status {{ .Release.Name }}
|
||||
$ helm -n {{ .Release.Namespace }} get values {{ .Release.Name }}
|
||||
$ helm -n {{ .Release.Namespace }} get all {{ .Release.Name }}
|
||||
|
||||
# To delete the release
|
||||
|
||||
Use helm uninstall command to delete the release.
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} uninstall {{ .Release.Name }}
|
||||
|
||||
Note that some resources may still be in use after a release is deleted. For exemple, PersistentVolumeClaims are not deleted by default for some storage classes or if some annotations are set.
|
||||
|
||||
# More information
|
||||
|
||||
You can see this notes again by running:
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} get notes {{ .Release.Name }}
|
||||
|
||||
{{- $count := 0 -}}
|
||||
{{- $listOfURL := "" -}}
|
||||
{{- if and .Values.server.ingress .Values.server.ingress.enabled }}
|
||||
{{- $count = add1 $count -}}{{- $listOfURL = printf "%s\n- http://%s" $listOfURL (tpl .Values.server.ingress.host .) -}}
|
||||
{{- end }}
|
||||
{{- if gt $count 0 }}
|
||||
|
||||
# List of activated ingresses URL:
|
||||
{{ $listOfURL }}
|
||||
|
||||
You can get these urls with kubectl:
|
||||
|
||||
kubeclt get ingress -n {{ .Release.Namespace }}
|
||||
|
||||
{{- end }}
|
||||
|
||||
Thanks for using Helm!
|
36
chart/templates/_helpers.tpl
Normal file
36
chart/templates/_helpers.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{{- define "website.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "website.name" -}}
|
||||
{{- if .Values.nameOverride -}}
|
||||
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "website.labels" -}}
|
||||
{{ include "website.selectorLabels" .}}
|
||||
{{ if .Chart.Version -}}
|
||||
{{ printf "katenary.v3/chart-version: '%s'" .Chart.Version }}
|
||||
{{- end }}
|
||||
{{ if .Chart.AppVersion -}}
|
||||
{{ printf "katenary.v3/app-version: '%s'" .Chart.AppVersion }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "website.selectorLabels" -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{ printf "katenary.v3/name: %s" $name }}
|
||||
{{ printf "katenary.v3/instance: %s" .Release.Name }}
|
||||
{{- end -}}
|
52
chart/templates/server/deployment.yaml
Normal file
52
chart/templates/server/deployment.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
katenary.v3/compose-hash: 07a6c3341d6d1030ebf49ee3a618c3296c87ae32
|
||||
katenary.v3/version: develop-628b35d
|
||||
labels:
|
||||
{{- include "website.labels" . | nindent 4 }}
|
||||
katenary.v3/component: server
|
||||
name: '{{ include "website.fullname" . }}-server'
|
||||
spec:
|
||||
replicas: {{ .Values.server.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "website.selectorLabels" . | nindent 6 }}
|
||||
katenary.v3/component: server
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "website.selectorLabels" . | nindent 8 }}
|
||||
katenary.v3/component: server
|
||||
spec:
|
||||
containers:
|
||||
- image: '{{ tpl .Values.server.repository.image $ }}:{{ tpl .Values.server.repository.tag $ | default "latest" }}'
|
||||
imagePullPolicy: {{ .Values.server.imagePullPolicy }}
|
||||
name: server
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
{{- if .Values.server.resources }}
|
||||
resources:
|
||||
{{ .Values.server.resources | toYaml | nindent 10 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: dist
|
||||
{{- if .Values.pullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- .Values.pullSecrets | toYaml | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.server.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- .Values.server.nodeSelector | toYaml | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if ne .Values.server.serviceAccount "" }}
|
||||
serviceAccountName: {{ .Values.server.serviceAccount | quote }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- configMap:
|
||||
name: '{{ include "website.fullname" . }}-server-dist'
|
||||
name: dist
|
37
chart/templates/server/ingress.yaml
Normal file
37
chart/templates/server/ingress.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
{{- if .Values.server.ingress.enabled -}}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
katenary.v3/compose-hash: 07a6c3341d6d1030ebf49ee3a618c3296c87ae32
|
||||
katenary.v3/version: develop-628b35d
|
||||
{{- if .Values.server.ingress.annotations -}}
|
||||
{{- toYaml .Values.server.ingress.annotations | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "website.labels" . | nindent 4 }}
|
||||
katenary.v3/component: server
|
||||
name: '{{ include "website.fullname" . }}-server'
|
||||
spec:
|
||||
{{- if ne .Values.server.ingress.class "-" }}
|
||||
ingressClassName: '{{ tpl .Values.server.ingress.class $ }}'
|
||||
{{- end }}
|
||||
rules:
|
||||
- host: '{{ tpl .Values.server.ingress.host $ }}'
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: '{{ include "website.fullname" . }}-server'
|
||||
port:
|
||||
name: http
|
||||
path: '{{ tpl .Values.server.ingress.path $ }}'
|
||||
pathType: ImplementationSpecific
|
||||
{{- if .Values.server.ingress.tls.enabled }}
|
||||
tls:
|
||||
- hosts:
|
||||
- '{{ tpl .Values.server.ingress.host . }}'
|
||||
secretName: '{{ include "website.fullname" . }}-server-tls'
|
||||
{{ end -}}
|
||||
|
||||
{{- end -}}
|
19
chart/templates/server/service.yaml
Normal file
19
chart/templates/server/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
katenary.v3/compose-hash: 07a6c3341d6d1030ebf49ee3a618c3296c87ae32
|
||||
katenary.v3/version: develop-628b35d
|
||||
labels:
|
||||
{{- include "website.labels" . | nindent 4 }}
|
||||
katenary.v3/component: server
|
||||
name: '{{ include "website.fullname" . }}-server'
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
selector:
|
||||
{{- include "website.selectorLabels" . | nindent 4 }}
|
||||
katenary.v3/component: server
|
327
chart/templates/server/statics/dist/configmap.yaml
vendored
Normal file
327
chart/templates/server/statics/dist/configmap.yaml
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user