Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/self-learning-platform/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sources:
- https://github.com/devops-ia/helm-self-learning-platform
- https://github.com/devops-ia/self-learning-platform
version: 1.0.0
appVersion: 0.0.1
appVersion: 1.0.0
home: https://github.com/devops-ia/self-learning-platform
keywords:
- self-learning
Expand Down
24 changes: 3 additions & 21 deletions charts/self-learning-platform/ci/ci-standalone-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
image:
repository: self-learning-platform

env:
NODE_ENV: production
PORT: "3000"
Expand All @@ -14,25 +11,14 @@ env:
NEXT_PUBLIC_REGISTRATION_ENABLED: "true"
NEXT_PUBLIC_DEMO_MODE: "false"
DB_URL: /app/data/learning-platform.db

envFromSecrets:
SESSION_SECRET:
name: self-learning-platform-secrets
key: session-secret
ADMIN_PASSWORD:
name: self-learning-platform-secrets
key: admin-password
SESSION_SECRET: "PWgNAY+AIQUi3tSnVqPo1jx4B3/rg+M3tkIF/A1ltKI="
ADMIN_PASSWORD: "adminpassword"

service:
type: ClusterIP
port: 80
targetPort: 3000

persistence:
enabled: true
accessMode: ReadWriteOnce
size: 10Gi

podSecurityContext:
fsGroup: 1000
seccompProfile:
Expand All @@ -57,7 +43,7 @@ resources:

autoscaling:
enabled: true
minReplicas: 3
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 80
Expand All @@ -83,10 +69,6 @@ autoscaling:
periodSeconds: 60
selectPolicy: Max

podDisruptionBudget:
enabled: true
maxUnavailable: 1

ingress:
enabled: true
className: nginx
Expand Down
8 changes: 4 additions & 4 deletions charts/self-learning-platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,23 @@ spec:
{{- if .Values.livenessProbeCustom }}
{{- toYaml .Values.livenessProbeCustom | nindent 12 }}
{{- else }}
{{- toYaml .Values.livenessProbe | nindent 12 }}
{{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
{{- if .Values.readinessProbeCustom }}
{{- toYaml .Values.readinessProbeCustom | nindent 12 }}
{{- else }}
{{- toYaml .Values.readinessProbe | nindent 12 }}
{{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
{{- if .Values.startupProbeCustom }}
{{- toYaml .Values.startupProbeCustom | nindent 12 }}
{{- else }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- omit .Values.startupProbe "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.envFromFiles }}
Expand Down Expand Up @@ -150,7 +150,7 @@ spec:
persistentVolumeClaim:
claimName: {{ if $.Values.persistence.existingClaim }}{{ $.Values.persistence.existingClaim }}{{ else }}{{ include "self-learning-platform.fullname" $ }}-data{{ end }}
{{- else }}
{{- toYaml $volume | nindent 8 }}
{{- list $volume | toYaml | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.serviceMonitor.enabled }}
{{- if and .Values.serviceMonitor.enabled (lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "servicemonitors.monitoring.coreos.com") }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
13 changes: 0 additions & 13 deletions charts/self-learning-platform/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,4 @@ spec:
image: busybox:1.37.0
command: ['wget']
args: ['{{ include "self-learning-platform.fullname" . }}:{{ .Values.service.port }}']
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
restartPolicy: Never
securityContext:
fsGroup: 1000
seccompProfile:
type: RuntimeDefault
2 changes: 1 addition & 1 deletion charts/self-learning-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ replicaCount: 2
# -- Image registry configuration
image:
# -- Repository of the image
repository: self-learning-platform
repository: devopsiaci/self-learning-platform
# -- Pull policy for the image
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion
Expand Down
Loading