Skip to content
Snippets Groups Projects
Commit f61d28cd authored by Guillaume Samson's avatar Guillaume Samson
Browse files

swh: deploy web service in staging environment

Related to swh/infra/sysadm-environment#4812
parent 29fd9588
No related branches found
No related tags found
1 merge request!45swh: add web service
......@@ -4,11 +4,13 @@ kind: Ingress
metadata:
namespace: {{ .Values.namespace }}
name: swh-web-ingress
# annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /
{{- if .Values.web.ingressAnnotations }}
annotations:
{{- toYaml .Values.web.ingressAnnotations | nindent 6 }}
{{- end }}
spec:
{{- if .Values.ingressClassName }}
ingressClassName: {{ .Values.ingressClassName }}
{{- if .Values.web.ingressClassName }}
ingressClassName: {{ .Values.web.ingressClassName }}
{{- end }}
rules:
- http:
......@@ -27,7 +29,11 @@ spec:
name: web
port:
number: 80
{{- if .Values.host }}
host: {{ .Values.host }}
{{- end }}
{{ end }}
\ No newline at end of file
host: {{ .Values.web.host }}
{{- if .Values.web.tlsEnabled }}
tls:
- hosts:
- {{ .Values.web.host }}
secretName: swh-web-crt
{{- end }}
{{ end }}
......@@ -25,8 +25,6 @@ tests:
value: 0
- it: Loaders keda downscale deactivated when "stopWhenNoActivity" is false
values:
- values/loaders-autoscaling.yaml
set:
namespace: test-namespace
loaders:
......
......@@ -7,8 +7,8 @@ tests:
set:
web.enabled: true
namespace: mynamespace
ingressClassName: myingressClass
host: myhost
web.ingressClassName: myingressClass
web.host: myhost
asserts:
- containsDocument:
kind: Ingress
......
......@@ -116,5 +116,18 @@ storage:
values:
- "true"
web:
sentry:
enabled: true
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: swh/web
operator: In
values:
- "true"
statsd_exporter:
enabled: true
......@@ -191,4 +191,24 @@ storage:
cls: remote
url: http://objstorage0.internal.staging.swh.network:5003/
filters_conf:
- type: readonly
\ No newline at end of file
- type: readonly
web:
enabled: true
logLevel: INFO
replicas: 2
requestedCpu: 500m
requestedMemory: 500Mi
#autoScaling:
# maxReplicaCount: 5
configSecretRef: swh-cassandra-webapp-config
host: webapp-cassandra.internal.staging.swh.network
ingressAnnotations:
cert-manager.io/cluster-issuer: letsencrypt-production-gandi
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
tlsEnabled: true
memcached:
enabled: true
......@@ -24,6 +24,8 @@ swh_loader_svn_image: container-registry.softwareheritage.org/swh/infra/swh-apps
swh_loader_svn_image_version: '20230306.1'
swh_storage_image: container-registry.softwareheritage.org/swh/infra/swh-apps/storage
swh_storage_image_version: '20230327.1'
swh_web_image: container-registry.softwareheritage.org/swh/infra/swh-apps/web
swh_web_image_version: '20230420.1'
swh_storage_replayer_image: container-registry.softwareheritage.org/swh/infra/swh-apps/storage_replayer
swh_storage_replayer_image_version: '20230321.1'
swh_vault_cookers_image: container-registry.softwareheritage.org/swh/infra/swh-apps/vault_cookers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment