Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #87 from rashley-iqt/K8s
Browse files Browse the repository at this point in the history
K8s
  • Loading branch information
cglewis authored Dec 21, 2021
2 parents d263fe1 + 089174f commit b469e26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 213 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,15 @@ docker-compose up -d --build
```

### Start with Kubernetes
This has been tested using Minikube.It should be applicable in other Kuberenetes environments but has not been explicitly tested.

```
TODO
minikube start --driver docker --mount --mount-string $(pwd)/data/:/ff-data/
eval $(minikube docker-env) && \
docker build -t iqtlabs/fakefinder-api ./api && \
docker build -t iqtlabs/fakefinder-dash ./dash && \
docker build -t iqtlabs/fakefinder-detectors ./detectors
minikube kubectl -- apply -f ff-networks.yaml -f ff-volumes.yaml -f ff-services.yaml -f ff-deployments.yaml
```

You should then be able to point a browser to the host's IP address to access the web application.
Expand Down
219 changes: 7 additions & 212 deletions ff-deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
labels:
service: api
name: FakeFinder
name: api
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -69,230 +69,25 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: boken
name: boken
service: detectors
name: detectors
spec:
replicas: 1
selector:
matchLabels:
service: boken
service: detectors
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: boken
service: detectors
spec:
containers:
- image: iqtlabs/fakefinder-boken
- image: iqtlabs/fakefinder-detectors
imagePullPolicy: Never
name: boken
resources: {}
volumeMounts:
- mountPath: /weights
name: weights
- mountPath: /uploads
name: uploads
restartPolicy: Always
volumes:
- name: uploads
hostPath:
path: /ff-data/uploads
type: Directory
- name: weights
hostPath:
path: /ff-data/weights
type: Directory
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: eighteen
name: eighteen
spec:
replicas: 1
selector:
matchLabels:
service: eighteen
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: eighteen
spec:
containers:
- image: iqtlabs/fakefinder-eighteen
imagePullPolicy: Never
name: eighteen
resources: {}
volumeMounts:
- mountPath: /weights
name: weights
- mountPath: /uploads
name: uploads
restartPolicy: Always
volumes:
- name: uploads
hostPath:
path: /ff-data/uploads
type: Directory
- name: weights
hostPath:
path: /ff-data/weights
type: Directory
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: medics
name: medics
spec:
replicas: 1
selector:
matchLabels:
service: medics
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: medics
spec:
containers:
- image: iqtlabs/fakefinder-medics
imagePullPolicy: Never
name: medics
resources: {}
volumeMounts:
- mountPath: /weights
name: weights
- mountPath: /uploads
name: uploads
restartPolicy: Always
volumes:
- name: uploads
hostPath:
path: /ff-data/uploads
type: Directory
- name: weights
hostPath:
path: /ff-data/weights
type: Directory
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: ntech
name: ntech
spec:
replicas: 1
selector:
matchLabels:
service: ntech
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: ntech
spec:
containers:
- image: iqtlabs/fakefinder-ntech
imagePullPolicy: Never
name: ntech
resources: {}
volumeMounts:
- mountPath: /weights
name: weights
- mountPath: /uploads
name: uploads
restartPolicy: Always
volumes:
- name: uploads
hostPath:
path: /ff-data/uploads
type: Directory
- name: weights
hostPath:
path: /ff-data/weights
type: Directory
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: selimsef
name: selimsef
spec:
replicas: 1
selector:
matchLabels:
service: selimsef
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: selimsef
spec:
containers:
- image: iqtlabs/fakefinder-selimsef
imagePullPolicy: Never
name: selimsef
resources: {}
volumeMounts:
- mountPath: /weights
name: weights
- mountPath: /uploads
name: uploads
restartPolicy: Always
volumes:
- name: uploads
hostPath:
path: /ff-data/uploads
type: Directory
- name: weights
hostPath:
path: /ff-data/weights
type: Directory
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: wm
name: wm
spec:
replicas: 1
selector:
matchLabels:
service: wm
strategy:
type: Recreate
template:
metadata:
labels:
detectors: "true"
service: wm
spec:
containers:
- image: iqtlabs/fakefinder-wm
imagePullPolicy: Never
name: wm
name: detectors
resources: {}
volumeMounts:
- mountPath: /weights
Expand Down

0 comments on commit b469e26

Please sign in to comment.