Skip to content
Snippets Groups Projects
Verified Commit bace2caf authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

production/graphql-webapp1: Deploy graphql instance

So we can reach https://webapp1.internal.softwareheritage.org/graphql/ as we did for the
cassandra webapp [1]

This avoids touching the existing instance which is wired for the actual production
https://archive.softwareheritage.org/graphql/ (this is wired internally differently for
now).

[1] https://webapp-cassandra.internal.softwareheritage.org/graphql/

Refs. swh/infra/sysadm-environment#5183
parent 67cfccd7
No related branches found
No related tags found
1 merge request!271Add new graphql instance on https://webapp1.internal.softwareheritage.org/graphql/
......@@ -37,8 +37,8 @@ spec:
affinity:
{{- toYaml $.Values.graphql.affinity | nindent 8 }}
{{- end }}
{{- if and $.Values.podPriority.enabled $.Values.graphql.priorityClassName }}
priorityClassName: {{ $.Values.namespace }}-{{ $.Values.graphql.priorityClassName }}
{{- if and $.Values.podPriority.enabled (or $.Values.graphql.priorityClassName $graphql_config.priorityClassName) }}
priorityClassName: {{ $.Values.namespace }}-{{ $graphql_config.priorityClassName | default $.Values.graphql.priorityClassName }}
{{ end }}
containers:
- name: {{ $serviceType }}
......
......@@ -203,6 +203,37 @@ graphql:
client: swh-web
cacheUrl: memcached://memcached:11211
maxRawContentSize: 10000
webapp1:
replicas: 1
priorityClassName: low-workload
storageConfigurationRef: remoteROStorageConfiguration
searchConfigurationRef: remoteSearchConfiguration
introspection: yes
hosts:
- webapp1.internal.softwareheritage.org
ingress:
enabled: true
extraAnnotations:
nginx.ingress.kubernetes.io/rewrite-target: /
whitelistSourceRangeRef: internalNetworkRanges
endpoints:
default:
paths:
- path: /graphql/
extraWhitelistSourceRange:
# vpn network
- 192.168.101.0/24
gunicorn:
threads: 4
workers: 2
timeout: 3600
auth:
enabled: true
server: https://auth.softwareheritage.org/auth/
realm: SoftwareHeritage
client: swh-web
cacheUrl: memcached://memcached:11211
maxRawContentSize: 10000
listers:
enabled: true
......
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