The current chart with katenarry 3.0.0-rc2
This commit is contained in:
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