Skip to content

Commit

Permalink
add caMic k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 20, 2022
1 parent e5ae707 commit f2ade01
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 87 deletions.
87 changes: 0 additions & 87 deletions kubernetes/QUIP-SAMPLE.yml

This file was deleted.

90 changes: 90 additions & 0 deletions kubernetes/caMicroscope.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apiVersion: v1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: back
labels:
service: back
spec:
selector:
matchLabels:
service: back
template:
metadata:
labels:
service: back
spec:
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "ca-load"
- "ca-iip"
- "ca-mongo"
- "ca-back"
volumes:
- name: images
emptyDir: {}
containers:
- name: mongo
image: mongo:4.2-bionic
ports:
- containerPort: 27017
- name: back
image: ghcr.io/camicroscope/caracal:master
ports:
- containerPort: 4010
env:
- name: PORT
value: "4010"
- name: JWK_URL
value: "https://www.googleapis.com/oauth2/v3/certs"
- name: IIP_PATH
value: "http://localhost:8080/fcgi-bin/iipsrv.fcgi"
- name: MONGO_URI
value: "mongodb://localhost"
- name: GENERATE_KEY_IF_MISSING
value: "true"
- name: iip
image: camicroscope/iipimage:latest
ports:
- containerPort: 8080
volumeMounts:
- name: images
mountPath: /images/
- name: loader
image: ghcr.io/camicroscope/slideloader:master
ports:
- containerPort: 4000
volumeMounts:
- name: images
mountPath: /images/
- apiVersion: v1
kind: Service
metadata:
name: back
labels:
service: back
spec:
type: NodePort
selector:
service: back
ports:
- name: "4010"
port: 4010
targetPort: 4010
nodePort: 30401
type: LoadBalancer
- apiVersion: v1
kind: Service
metadata:
labels:
name: ca-load
name: ca-load
spec:
ports:
- port: 4000
targetPort: 4000
selector:
name: loader

0 comments on commit f2ade01

Please sign in to comment.