Skip to content

Commit

Permalink
Merge pull request #43 from linkernetworks/d3d/update-deployment-config
Browse files Browse the repository at this point in the history
Update deployment config

Former-commit-id: c40a9eed6b2fb32408855b6ead7c2ca4ae15e82e [formerly c40a9eed6b2fb32408855b6ead7c2ca4ae15e82e [formerly 8fbbaa3]]
Former-commit-id: acf620fdf8fe662122b576e44185d5e948ffcd0f
Former-commit-id: d69ceb1
  • Loading branch information
John-Lin authored Jul 4, 2018
2 parents 8b84410 + 116bcac commit 961ee93
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 15 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ docker run -it --network=host asia.gcr.io/linker-aurora/vortex:<git-branch> bash
// example
docker run -it --network=host asia.gcr.io/linker-aurora/vortex:develop bash
```

# Deploy to Kubernetes

1. Apply base storage system
2. Apply service
3. Apply apps
- require cluster admin to apply role binding

```
kubectl apply -f deploy/kubernetes/base/service/mongodb
kubectl apply -f deploy/kubernetes/apps/monitoring/monitoring-namespace.yaml
kubectl apply -f deploy/kubernetes/apps/ --resursive
```
13 changes: 0 additions & 13 deletions deploy/kubernetes/base/gluster/slow-many.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions deploy/kubernetes/service/mongodb/statefulset-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: mongo
spec:
serviceName: "mongo"
replicas: 1
template:
metadata:
labels:
service: mongo
role: db
spec:
terminationGracePeriodSeconds: 10
containers:
- name: mongo
resources:
requests:
cpu: 100m
image: mongo
command:
- mongod
- "--bind_ip"
- 0.0.0.0
ports:
- containerPort: 27017
volumeMounts:
- name: mongodb
mountPath: /data/db
volumeClaimTemplates:
- metadata:
name: mongodb
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "manual"
resources:
requests:
storage: 10Gi
4 changes: 2 additions & 2 deletions deploy/kubernetes/service/mongodb/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ spec:
- metadata:
name: mongodb
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "manual"
accessModes: [ "ReadWriteMany" ]
storageClassName: "slow-many"
resources:
requests:
storage: 10Gi

0 comments on commit 961ee93

Please sign in to comment.