Skip to content

Commit

Permalink
Release 1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kerny3d committed Nov 28, 2023
1 parent 7c6606a commit 19ff4c1
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/knowage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Reduce number of workers inside Python container

### Fixed

- Explicitly specify volumeMode in knowage-main PVC
- Fixed network policies to enable ingress from everywhere to main app

## [1.0.16] - 2023-11-13

Expand Down
2 changes: 1 addition & 1 deletion charts/knowage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

apiVersion: v2
name: knowage
version: 1.0.16
version: 1.0.17
kubeVersion: ">= 1.22.0-0"
description: A Helm chart for Kubernetes Suite
type: application
Expand Down
7 changes: 7 additions & 0 deletions charts/knowage/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,13 @@ Deny all.
{{ printf "%s-%s" (include "knowage.fullname" .) "deny-all" }}
{{- end }}

{{/*
Allow all to main app.
*/}}
{{- define "knowage.networkpolicy.allow-all-to-main-app" -}}
{{ printf "%s-%s" (include "knowage.fullname" .) "allow-all-to-main-app" }}
{{- end }}

{{/*
For Python.
*/}}
Expand Down
5 changes: 4 additions & 1 deletion charts/knowage/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,14 @@ spec:
secretKeyRef:
name: {{ include "knowage.secret" . }}
key: hmac
# TODO : Better to do this on Docker container image
- name: GUNICORN_CMD_ARGS
value: '--workers=5'
livenessProbe:
httpGet:
path: /dataset/libraries
port: 5000
initialDelaySeconds: 30
initialDelaySeconds: 60
failureThreshold: 5
periodSeconds: 5
readinessProbe:
Expand Down
14 changes: 14 additions & 0 deletions charts/knowage/templates/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ spec:
- Ingress
- Egress

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "knowage.networkpolicy.allow-all-to-main-app" . }}
namespace: {{ .Release.Namespace }}
spec:
podSelector:
matchLabels:
knowage-suite.com/app: knowage
{{- include "knowage.selectorLabels" . | nindent 10 }} policyTypes:
- Ingress
ingress:
{}

{{ if or (eq ( default .Values.knowage.deployPython false ) true) (eq ( default .Values.knowage.python.deploy false ) true) }}
---
# _______ _________ _ _ ____ _ _
Expand Down

0 comments on commit 19ff4c1

Please sign in to comment.