solr: use a route instead of joining pod networks
This commit is contained in:
parent
08448c6cd1
commit
19d2e4c67c
4 changed files with 20 additions and 18 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue