mirror of https://github.com/Squidex/squidex.git
16 changed files with 350 additions and 34 deletions
@ -0,0 +1,23 @@ |
|||
# Patterns to ignore when building packages. |
|||
# This supports shell glob matching, relative path matching, and |
|||
# negation (prefixed with !). Only one pattern per line. |
|||
.DS_Store |
|||
# Common VCS dirs |
|||
.git/ |
|||
.gitignore |
|||
.bzr/ |
|||
.bzrignore |
|||
.hg/ |
|||
.hgignore |
|||
.svn/ |
|||
# Common backup files |
|||
*.swp |
|||
*.bak |
|||
*.tmp |
|||
*.orig |
|||
*~ |
|||
# Various IDEs |
|||
.project |
|||
.idea/ |
|||
*.tmproj |
|||
.vscode/ |
|||
@ -0,0 +1,27 @@ |
|||
apiVersion: v2 |
|||
type: application |
|||
|
|||
name: squidex |
|||
description: Squidex CMS |
|||
|
|||
version: 1.0.0 |
|||
appVersion: "5.7.0" |
|||
|
|||
home: https://squidex.io/ |
|||
|
|||
keywords: |
|||
- cms |
|||
- headless-cms |
|||
- mongodb |
|||
- csharp |
|||
- asp-net-core |
|||
- asp-net |
|||
|
|||
sources: |
|||
- https://github.com/Squidex/squidex |
|||
|
|||
dependencies: |
|||
- name: mongodb-replicaset |
|||
version: 3.9.6 |
|||
repository: https://kubernetes-charts.storage.googleapis.com/ |
|||
condition: mongodb-replicaset.enabled |
|||
Binary file not shown.
@ -0,0 +1,73 @@ |
|||
{{/* vim: set filetype=mustache: */}} |
|||
|
|||
{{- define "squidex.selectors" }} |
|||
{{- if .Values.selectors.component }} |
|||
app.kubernetes.io/component: {{ .Values.selectors.component }} |
|||
{{- end}} |
|||
app.kubernetes.io/name: {{ include "squidex.name" . }} |
|||
app.kubernetes.io/instance: {{ .Release.Name }} |
|||
{{- if .Values.selectors.partOf }} |
|||
app.kubernetes.io/part-of: {{ .Values.selectors.partOf }} |
|||
{{- end }} |
|||
{{- if .Values.selectors.version }} |
|||
app.kubernetes.io/version: {{ .Values.selectors.version | quote }} |
|||
{{- end -}} |
|||
{{- end -}} |
|||
|
|||
{{- define "squidex.labels" }} |
|||
{{- include "squidex.selectors" . }} |
|||
helm.sh/chart: {{ include "squidex.chart" . }} |
|||
app.kubernetes.io/managed-by: {{ .Release.Service }} |
|||
{{- if .Values.labels }} |
|||
{{- toYaml .Values.labels | nindent 4 }} |
|||
{{- end -}} |
|||
{{- end -}} |
|||
|
|||
{{- define "squidex.mongoDefaultHostname" }} |
|||
{{- $release := .Release}} |
|||
{{- $clusterSuffix := .Values.clusterSuffix}} |
|||
{{- range $index, $i := until (int (index .Values "mongodb-replicaset").replicas) }} |
|||
{{- $replica := printf "%s-mongodb-replicaset-%d.%s-mongodb-replicaset.%s.svc.%s" $release.Name $i $release.Name $release.Namespace $clusterSuffix }} |
|||
{{- if eq $i 0}} |
|||
{{- $replica }} |
|||
{{- else -}} |
|||
,{{ $replica }} |
|||
{{- end }} |
|||
{{- end }} |
|||
{{- end }} |
|||
|
|||
{{- define "squidex.internalDnsName" }} |
|||
{{- .Release.Name }}- |
|||
{{- include "squidex.name" . }}. |
|||
{{- .Release.Namespace }}.svc. |
|||
{{- .Values.clusterSuffix}} |
|||
{{- end }} |
|||
|
|||
{{/* |
|||
Create chart name and version as used by the chart label. |
|||
*/}} |
|||
{{- define "squidex.chart" -}} |
|||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} |
|||
{{- end -}} |
|||
|
|||
{{- define "squidex.name" -}} |
|||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} |
|||
{{- end -}} |
|||
|
|||
{{/* |
|||
Create a default fully qualified app name. |
|||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
|||
If release name contains chart name it will be used as a full name. |
|||
*/}} |
|||
{{- define "squidex.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 -}} |
|||
@ -0,0 +1,67 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: {{ include "squidex.fullname" . }} |
|||
labels: |
|||
{{- include "squidex.labels" . | indent 4 }} |
|||
spec: |
|||
replicas: {{ .Values.deployment.replicaCount }} |
|||
selector: |
|||
matchLabels: |
|||
{{- include "squidex.selectors" . | indent 6 }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
{{- include "squidex.selectors" . | indent 8 }} |
|||
spec: |
|||
{{- with .Values.imagePullSecrets }} |
|||
imagePullSecrets: |
|||
{{- toYaml . | nindent 8 }} |
|||
{{- end }} |
|||
containers: |
|||
- name: {{ .Chart.Name }} |
|||
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}" |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
protocol: TCP |
|||
- name: orleans |
|||
containerPort: 11111 |
|||
protocol: TCP |
|||
livenessProbe: |
|||
httpGet: |
|||
path: /healthz |
|||
port: http |
|||
readinessProbe: |
|||
httpGet: |
|||
path: /readiness |
|||
port: http |
|||
resources: |
|||
{{- toYaml .Values.resources | nindent 12 }} |
|||
env: |
|||
{{- range $key, $val := .Values.env }} |
|||
{{- if (eq $key "URLS__BASEURL") }} |
|||
- name: {{ $key | quote }} |
|||
value: {{ required (printf "The value .Values.env.%s is required" $key) $val | quote }} |
|||
{{- else }} |
|||
- name: {{ $key | quote }} |
|||
value: {{ $val | quote }} |
|||
{{- end }} |
|||
{{- end }} |
|||
|
|||
{{- $mongoDefaultConnectionString := printf "mongodb://%s" (include "squidex.mongoDefaultHostname" .) }} |
|||
{{- if (not .Values.env.EVENTSTORE__MONGODB__CONFIGURATION) }} |
|||
- name: "EVENTSTORE__MONGODB__CONFIGURATION" |
|||
value: {{ $mongoDefaultConnectionString | quote }} |
|||
{{- end }} |
|||
{{- if (not .Values.env.STORE__MONGODB__CONFIGURATION) }} |
|||
- name: "STORE__MONGODB__CONFIGURATION" |
|||
value: {{ $mongoDefaultConnectionString | quote }} |
|||
{{- end }} |
|||
nodeSelector: |
|||
{{- toYaml .Values.nodeSelector | nindent 8 }} |
|||
affinity: |
|||
{{- toYaml .Values.affinity | nindent 8 }} |
|||
tolerations: |
|||
{{- toYaml .Values.tolerations | nindent 8 }} |
|||
@ -0,0 +1,34 @@ |
|||
{{- $fullName := include "squidex.fullname" . -}} |
|||
apiVersion: networking.k8s.io/v1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: {{ $fullName }} |
|||
namespace: {{ .Release.Namespace | quote }} |
|||
labels: |
|||
{{- include "squidex.labels" . | indent 4 }} |
|||
{{- with .Values.ingress.annotations }} |
|||
annotations: |
|||
{{- toYaml . | nindent 4 }} |
|||
{{- end }} |
|||
spec: |
|||
{{- if .Values.ingress.tls }} |
|||
tls: |
|||
{{- range .Values.ingress.tls }} |
|||
- hosts: |
|||
{{- range .hosts }} |
|||
- {{ . | quote }} |
|||
{{- end }} |
|||
secretName: {{ .secretName }} |
|||
{{- end }} |
|||
{{- end }} |
|||
rules: |
|||
- host: {{ .Values.ingress.hostName | quote }} |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: {{ $fullName }} |
|||
port: |
|||
number: {{ .Values.service.port }} |
|||
@ -0,0 +1,15 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: {{ include "squidex.fullname" . }} |
|||
labels: |
|||
{{- include "squidex.labels" . | indent 4 }} |
|||
spec: |
|||
type: {{ .Values.service.type }} |
|||
ports: |
|||
- port: {{ .Values.service.port }} |
|||
targetPort: http |
|||
protocol: TCP |
|||
name: http |
|||
selector: |
|||
{{- include "squidex.selectors" . | indent 4 }} |
|||
@ -0,0 +1,60 @@ |
|||
labels: |
|||
service: |
|||
type: ClusterIP |
|||
port: 80 |
|||
deployment: |
|||
replicaCount: 1 |
|||
selectors: |
|||
component: squidex |
|||
partOf: "" |
|||
version: "" |
|||
image: |
|||
repository: squidex/squidex |
|||
tag: "" |
|||
pullPolicy: IfNotPresent |
|||
|
|||
resources: { } |
|||
nodeSelector: { } |
|||
tolerations: [ ] |
|||
affinity: { } |
|||
|
|||
clusterSuffix: cluster.local |
|||
|
|||
ingress: |
|||
annotations: { } |
|||
# kubernetes.io/ingress.class: nginx |
|||
# kubernetes.io/tls-acme: "true" |
|||
hostName: squidex.local |
|||
|
|||
tls: [ ] |
|||
# - secretName: chart-example-tls |
|||
# hosts: |
|||
# - chart-example.local |
|||
|
|||
env: |
|||
URLS__BASEURL: null |
|||
URLS__ENFORCEHTTPS: false |
|||
EVENTSTORE__CONSUME: true |
|||
EVENTSTORE__TYPE: MongoDb |
|||
IDENTITY__ADMINEMAIL: null |
|||
IDENTITY__ADMINPASSWORD: null |
|||
IDENTITY__SHOWPII: true |
|||
LETSENCRYPT_HOST: null |
|||
LETSENCRYPT_EMAIL: null |
|||
LOGGING__HUMAN: "false" |
|||
EVENTSTORE__MONGODB__DATABASE: "Squidex" |
|||
STORE__MONGODB__DATABASE: "Squidex" |
|||
STORE__MONGODB__CONTENTDATABASE: "SquidexContent" |
|||
IDENTITY__GOOGLECLIENT: null |
|||
IDENTITY__GOOGLESECRET: null |
|||
IDENTITY__MICROSOFTCLIENT: null |
|||
IDENTITY__MICROSOFTSECRET: null |
|||
IDENTITY__GITHUBCLIENT: null |
|||
IDENTITY__GITHUBSECRET: null |
|||
IDENTITY__ALLOWPASSWORDAUTH: "true" |
|||
IDENTITY__LOCKAUTOMATICALLY: "false" |
|||
ORLEANS__CLUSTERING: MongoDB |
|||
|
|||
mongodb-replicaset: |
|||
enabled: true |
|||
replicas: 3 |
|||
Loading…
Reference in new issue