solr: use a route instead of joining pod networks

This commit is contained in:
Brendan Early 2021-05-15 13:35:39 -05:00
parent 08448c6cd1
commit 19d2e4c67c
No known key found for this signature in database
GPG key ID: 25CF7F7DE2FF5AA9
4 changed files with 20 additions and 18 deletions

View file

@ -6,5 +6,5 @@ metadata:
labels:
app: fedora-packages-static
data:
solr-url: "http://solr.solr.svc.cluster.local:8983/"
solr-url: "https://solr{{ env_suffix }}.fedoraproject.org:8983/"
sitemap-url: "https://packages{{ env_suffix }}.fedoraproject.org"

View file

@ -22,7 +22,7 @@ spec:
initContainers:
- name: init-solr
image: busybox
command: ['sh', '-c', 'until nslookup solr.solr.svc.cluster.local; do echo waiting for solr; sleep 2; done;']
command: ['sh', '-c', 'until ping -c1 solr{{ env_suffix }}.fedoraproject.org >/dev/null 2>&1; do echo waiting for solr; sleep 2; done']
containers:
- name: fedora-packages-static
image: fedora-packages-static:latest
@ -30,12 +30,12 @@ spec:
- name: SOLR_URL
valueFrom:
configMapKeyRef:
name: fedora-packages-static-configmap
name: fedora-packages-static-configmap
key: solr-url
- name: SITEMAP_URL
valueFrom:
configMapKeyRef:
name: fedora-packages-static-configmap
name: fedora-packages-static-configmap
key: sitemap-url
ports:
- containerPort: 80