Skip to content

Commit 118e9e4

Browse files
committedAug 8, 2016
Adds deployment examples.
1 parent 40abadd commit 118e9e4

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed
 

‎deployment/galaxy_rc.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: galaxy-k8s
5+
spec:
6+
replicas: 1
7+
template:
8+
metadata:
9+
labels:
10+
app: galaxy-k8s
11+
spec:
12+
containers:
13+
- name: galaxy-k8s
14+
image: docker-registry.phenomenal-h2020.eu/phnmnl/galaxy-k8s-runtime
15+
command: ["/bin/bash","-c","mkdir -p /opt/galaxy_data/database-sqlite && ./run.sh --daemon && tail -f paster.log"]
16+
lifecycle:
17+
preStop:
18+
exec:
19+
command:
20+
- "./run.sh"
21+
- "--stop"
22+
ports:
23+
- containerPort: 8080
24+
volumeMounts:
25+
- mountPath: "/opt/galaxy_data"
26+
name: galaxy-pvc
27+
volumes:
28+
- name: galaxy-pvc
29+
persistentVolumeClaim:
30+
claimName: galaxy-pvc

‎deployment/galaxy_svc.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: galaxy-svc-k8s
5+
labels:
6+
app: galaxy-k8s
7+
spec:
8+
type: NodePort
9+
ports:
10+
-
11+
port: 80
12+
selector:
13+
app: galaxy-k8s
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
kind: PersistentVolumeClaim
2+
apiVersion: v1
3+
metadata:
4+
name: galaxy-pvc
5+
spec:
6+
accessModes:
7+
- ReadWriteMany
8+
resources:
9+
requests:
10+
storage: 15Gi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: PersistentVolume
3+
metadata:
4+
name: pv0001
5+
labels:
6+
type: local
7+
spec:
8+
capacity:
9+
storage: 20Gi
10+
accessModes:
11+
- ReadWriteMany
12+
hostPath:
13+
path: "/opt/galaxy-data"
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
kind: PersistentVolume
2+
apiVersion: v1
3+
metadata:
4+
name: pv-galaxy-nfs
5+
labels:
6+
type: nfs
7+
spec:
8+
capacity:
9+
storage: 30Gi
10+
accessModes:
11+
- ReadWriteMany
12+
persistentVolumeReclaimPolicy: Retained
13+
nfs:
14+
path: /Users/jdoe/galaxy_data_folders/kube-cluster
15+
server: 192.168.64.1

0 commit comments

Comments
 (0)
Please sign in to comment.