-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZBIO-513 Update retriever to retrieve articles from fetcher
- Loading branch information
1 parent
151ae96
commit 2f6fd89
Showing
7 changed files
with
140 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: collab-fetcher | ||
labels: | ||
app: fetcher | ||
spec: | ||
containers: | ||
- name: fetcher | ||
image: roost-example/fetcher:v1 | ||
env: | ||
- name: STORAGE_DIR | ||
value: /app-store | ||
volumeMounts: | ||
- mountPath: /app-store | ||
name: article-storage | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "200m" | ||
ports: | ||
- name: fetcher-port | ||
containerPort: 8080 | ||
imagePullPolicy: Never | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- name: article-storage | ||
emptyDir: {} | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: fetcher | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: fetcher | ||
ports: | ||
- name: fetch-svc-port | ||
port: 30047 | ||
targetPort: 8080 | ||
nodePort: 30047 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: collab-retriever | ||
labels: | ||
app: retriever | ||
spec: | ||
containers: | ||
- name: retriever | ||
image: roost-example/retriever:v1 | ||
env: | ||
- name: FETCH_SERVICE | ||
value: fetcher:30047 | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "200m" | ||
ports: | ||
- name: retriever-port | ||
containerPort: 8081 | ||
imagePullPolicy: Never | ||
terminationGracePeriodSeconds: 0 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: retriever | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: retriever | ||
ports: | ||
- name: retriever-port | ||
port: 30048 | ||
targetPort: 8081 | ||
nodePort: 30048 |