diff --git a/conjurer/bot.yaml b/conjurer/bot.yaml index e7533ab..4ac4645 100644 --- a/conjurer/bot.yaml +++ b/conjurer/bot.yaml @@ -53,4 +53,7 @@ metadata: { name: bot, namespace: conjurer } spec: type: NodePort # radio/musician z Dockera muszą go dosięgnąć selector: { app: bot } - ports: [{ port: 5000, targetPort: 5000 }] \ No newline at end of file + # nodePort PRZYPIĘTY na sztywno. Bez tego k8s losuje port z 30000-32767 przy + # (od)tworzeniu Service, a musician/betoniarka z Dockera adresują bota po + # http://192.168.1.73:32442 na sztywno - rozjazd = wyniki/eventy giną w locie. + ports: [{ port: 5000, targetPort: 5000, nodePort: 32442 }] \ No newline at end of file diff --git a/conjurer/librarian.yaml b/conjurer/librarian.yaml index 2535b3a..b3850fd 100644 --- a/conjurer/librarian.yaml +++ b/conjurer/librarian.yaml @@ -22,7 +22,10 @@ spec: - { name: CONJURER_LIBRARIAN_MAXTHREADS, value: "40" } - { name: CONJURER_CROSSREF_MAILTO, value: "mtuszowski@gmail.com" } - { name: CONJURER_LIBRARIAN_CHUNK, value: "_chunk.txt" } - - { name: CONJURER_MAIN_BOT, value: "http://192.168.1.73:32442" } + # Librarian jest W TYM SAMYM klastrze/namespace co bot - gada z nim + # po DNS Service'u, nie przez nodePort węzła (ten zostaje tylko dla + # zewnętrznych musician/betoniarka z Dockera). Odporne na przetasowania. + - { name: CONJURER_MAIN_BOT, value: "http://bot:5000" } - { name: CONJURER_LIBRARIAN_STATE_DIR, value: "/lib_temp_files" }