Skip to content
Open
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/queryservice/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: queryservice
version: 0.2.1
version: 0.2.2
home: https://github.com/wbstack
maintainers:
- name: WBstack
Expand Down
24 changes: 24 additions & 0 deletions charts/queryservice/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,27 @@ spec:
#TODO allow passing value in values
- name: WDQS_ENTITY_NAMESPACES
value: 120,122
initContainers:
- name: queryservice-allowlist-nginx-sidecar
image: nginx
restartPolicy: {{ .Values.image.restartPolicy }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
livenessProbe:
httpGet:
path: /allowlist.txt
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
#restart the container if it fails 3 times in 15 seconds
failureThreshold: 3
volumeMounts:
- mountPath: /wdqs/allowlist.txt
subPath: allowlist.txt
name: allowlist
readOnly: true
- mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
name: nginx-config
volumes:
- name: data
{{- if .Values.persistence.enabled }}
Expand All @@ -81,6 +102,9 @@ spec:
- name: allowlist
configMap:
name: {{ include "wdqs.fullname" . }}-allowlist
- name: nginx-config
configMap:
name: nginx-sidecar-config
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
16 changes: 16 additions & 0 deletions charts/queryservice/templates/nginx-sidecar-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-sidecar-config
data:
nginx.conf: |
events {}
http {
server {
listen 8080;

location /allowlist.txt {
root /wdqs/;
}
}
}
1 change: 1 addition & 0 deletions charts/queryservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ image:
repository: ghcr.io/wbstack/queryservice
tag: "0.3.6_0.6"
pullPolicy: IfNotPresent
restartPolicy: Always

app:
heapSize: 2g
Expand Down
Loading