Skip to content

Commit

Permalink
origin/board-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
verchol committed Jun 8, 2017
1 parent 4fc1890 commit 54a7e60
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 34 deletions.
1 change: 1 addition & 0 deletions app/tests/tmpTocken
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ya29.Gl1LBIp2oGmdfG9JDqeD9fphy1Sm9DE81Y7gZegZSCnkPbn2arXARmW7NQqsiRvtH_B958CHjVFcv-T7Yn1ebI9VCwzmGlo6p7zzTGELB1Tl9huBZeP3EuyYBea2aBI
11 changes: 5 additions & 6 deletions deploy/kube-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: app
name: demo-chat
labels:
service: app
service: demo-chat
spec:
replicas: 2
replicas: 1
template:
metadata:
annotations:
forceRedeployUniqId: "N/A"
labels:
service: app
service: demo-chat
spec:
containers:
- image: containers101/demochat:master
- image: ${{build_step}}
name: app
imagePullPolicy: Always
ports:
- containerPort: 5000
protocol: TCP

8 changes: 8 additions & 0 deletions deploy/kube-ingress-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: extensions/v1beta1g
kind: Ingress
metadata:
name: demochat-ingress
spec:
backend:
serviceName: demochat-board
servicePort: 80
10 changes: 5 additions & 5 deletions deploy/kube-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: app
name: app
app: demo-chat
name: demo-chat
spec:
type: NodePort
ports:
Expand All @@ -13,13 +13,13 @@ spec:
protocol: TCP
targetPort: 5000
selector:
service: app
service: demo-chat
---
apiVersion: extensions/v1beta1
apiVersion: extensions/v1beta1g
kind: Ingress
metadata:
name: demochat-ingress
spec:
backend:
serviceName: app
serviceName: demochat-board
servicePort: 80
47 changes: 24 additions & 23 deletions deploy/kube-mongo.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
---
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: gce-disk
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-ssd
#---
#kind: StorageClass
#apiVersion: storage.k8s.io/v1beta1
#metadata:
# name: gce-disk
#provisioner: kubernetes.io/gce-pd
#parameters:
# type: pd-ssd

#---
#apiVersion: v1
#kind: PersistentVolume
#metadata:
#name: mongo-volume
#annotations:
# volume.beta.kubernetes.io/storage-class: gce-disk
#spec:
#accessModes:
# - ReadWriteOnce
#capacity:
# storage: 5Gi
#hostPath:
# path: /data/pv0001/

---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongo-volume-claim
annotations:
volume.beta.kubernetes.io/storage-class: gce-disk
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -66,5 +68,4 @@ spec:
restartPolicy: Always
volumes:
- name: mongo-data
persistentVolumeClaim:
claimName: mongo-volume-claim
emptyDir: {}
15 changes: 15 additions & 0 deletions deploy/kube-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: demochat-board
name: demochat-board
spec:
type: NodePort
ports:
- name: "http"
port: 80
protocol: TCP
targetPort: 5000
selector:
service: demochat-board

0 comments on commit 54a7e60

Please sign in to comment.