EOX GitLab Instance

Commit 37687e12 authored by Nikola Jankovic's avatar Nikola Jankovic 💻
Browse files

added ingress

updated values
parent a0f0f1b6
Pipeline #18088 passed with stages
in 2 minutes and 27 seconds
......@@ -28,11 +28,32 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-ingestor
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default ( print "release-" .Chart.AppVersion ) }}"
imagePullPolicy: {{ .Values.image.pullPolicy | default "IfNotPresent" }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /
port: http
startupProbe:
httpGet:
path: /
port: http
failureThreshold: 30
periodSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 12 }}
args:
- "gunicorn"
- "-c"
- "config.py"
- "app"
env:
{{- range $key, $value := .Values.global.env }}
- name: {{ $key }}
......
......@@ -4,6 +4,7 @@ metadata:
name: {{ include "vs-ingestor.fullname" . }}
labels:
{{- include "vs-ingestor.labels" . | nindent 4 }}
app.kubernetes.io/service: ingestor
spec:
type: {{ .Values.service.type }}
ports:
......@@ -13,3 +14,4 @@ spec:
name: http
selector:
{{- include "vs-ingestor.selectorLabels" . | nindent 4 }}
app.kubernetes.io/service: ingestor
replicaCount: 1
nameOverride:
fullNameOverride:
image:
repository: registry.gitlab.eox.at/vs/ingestor
......@@ -18,6 +20,16 @@ resources:
requests:
cpu: 0.5
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 80
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
affinity: {}
volumes: []
......@@ -30,3 +42,18 @@ global:
REDIS_PREPROCESS_MD_QUEUE_KEY: "preprocess-md_queue"
INOTIFY_WATCH_DIR: "/mnt/data"
INOTIFY_MASKS: "IN_MOVED_TO,IN_CLOSE_WRITE"
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/enable-cors: "true"
cert-manager.io/cluster-issuer: letsencrypt
hosts:
- host: vs.local
tls:
- hosts:
- vs.local
secretName: vs-secret
# hosts and tls will be redefined always
bind = ['0.0.0.0:8000']
bind = ['0.0.0.0:80']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment