-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from jbernal0019/master
Implement PFCON in-network with shared filesystem storage
- Loading branch information
Showing
10 changed files
with
314 additions
and
179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: pfcon | ||
labels: | ||
app: pfcon | ||
env: development | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: pfcon | ||
env: development | ||
ports: | ||
- port: 30006 | ||
targetPort: 5005 | ||
nodePort: 30006 | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pfcon | ||
labels: | ||
app: pfcon | ||
env: development | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: pfcon | ||
env: development | ||
template: | ||
metadata: | ||
name: pfcon | ||
labels: | ||
app: pfcon | ||
env: development | ||
spec: | ||
initContainers: | ||
- name: init-pfcon | ||
image: busybox:1.32 | ||
command: [ 'sh', '-c', "until wget --spider -S -T 2 http://pman:5010/api/v1/ 2>&1 | grep '200 OK'; do echo waiting for pman; done" ] | ||
containers: | ||
- image: localhost:5000/fnndsc/pfcon:dev | ||
name: pfcon | ||
stdin: true | ||
tty: true | ||
ports: | ||
- containerPort: 5005 | ||
env: | ||
- name: APPLICATION_MODE | ||
value: development | ||
- name: PFCON_INNETWORK | ||
value: true | ||
- name: STORAGE_ENV | ||
value: filesystem | ||
command: ["python"] | ||
args: ["-m", "pfcon"] | ||
volumeMounts: | ||
- mountPath: "/var/local/storeBase" | ||
name: "storebase" | ||
- mountPath: "/app/pfcon" | ||
name: "pfcon-source" | ||
- mountPath: "/app/tests" | ||
name: "pfcon-tests" | ||
volumes: | ||
- name: "storebase" | ||
hostPath: | ||
path: ${STOREBASE} | ||
- name: "pfcon-source" | ||
hostPath: | ||
path: ${SOURCEDIR}/pfcon | ||
- name: "pfcon-tests" | ||
hostPath: | ||
path: ${SOURCEDIR}/tests | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: pman | ||
labels: | ||
app: pman | ||
env: production | ||
spec: | ||
selector: | ||
app: pman | ||
env: production | ||
ports: | ||
- port: 5010 | ||
targetPort: 5010 | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pman | ||
labels: | ||
app: pman | ||
env: production | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: pman | ||
env: production | ||
template: | ||
metadata: | ||
name: pman | ||
labels: | ||
app: pman | ||
env: production | ||
spec: | ||
containers: | ||
- image: fnndsc/pman | ||
name: pman | ||
ports: | ||
- containerPort: 5010 | ||
# Since pman spins off containers of its own it needs to mount storeBase dir | ||
# (where pfcon shares the data) into the spawned container. This directory is | ||
# passed in the STOREBASE env variable. | ||
env: | ||
- name: STORAGE_TYPE | ||
value: host | ||
- name: SECRET_KEY | ||
value: "anysu^l=@pnsf!5piqz6!!5kdcdpo79y6jebbp+2244yjm*#+k" | ||
- name: STOREBASE | ||
value: ${STOREBASE} | ||
- name: CONTAINER_ENV | ||
value: kubernetes |
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
Oops, something went wrong.