Skip to content
Snippets Groups Projects
Commit 5edd1f24 authored by nicolas's avatar nicolas
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
apiVersion: v1
kind: Service
metadata:
labels:
app: fdp
tier: blazegrah
name: blazegraph
spec:
ports:
- name: "8888"
port: 8888
targetPort: 8080
selector:
app: fdp
tier: blazegrah
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: fdp
tier: blazegrah
name: blazegraph-claim0
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fdp
tier: blazegrah
name: blazegraph
spec:
replicas: 1
selector:
matchLabels:
app: fdp
tier: blazegrah
strategy:
type: Recreate
template:
metadata:
labels:
app: fdp
tier: blazegrah
spec:
containers:
- image: metaphacts/blazegraph-basic:2.2.0-20160908.003514-6
imagePullPolicy: ""
name: blazegraph
ports:
- containerPort: 8080
resources: {}
volumeMounts:
- mountPath: /blazegraph-data
name: blazegraph-claim0
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: blazegraph-claim0
persistentVolumeClaim:
claimName: blazegraph-claim0
apiVersion: v1
kind: Service
metadata:
name: fdp-api
labels:
app: fdp
tier: back
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
selector:
app: fdp
tier: back
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdp-api
labels:
app: fdp
tier: back
spec:
replicas: 1
selector:
matchLabels:
app: fdp
tier: back
template:
metadata:
labels:
app: fdp
tier: back
spec:
containers:
- name: fdp-api
image: cines/cines-fdp:v1
ports:
- name: http
containerPort: 80
apiVersion: v1
kind: Service
metadata:
name: fdp-client
labels:
app: fdp
tier: front
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 80
selector:
app: fdp
tier: front
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdp-client
labels:
app: fdp
tier: front
spec:
replicas: 1
selector:
matchLabels:
app: fdp
tier: front
template:
metadata:
labels:
app: fdp
tier: front
spec:
containers:
- name: fdp-client
image: cines/cines-fdp-client:v1
ports:
- name: http
containerPort: 80
apiVersion: v1
kind: Service
metadata:
labels:
app: fdp
tier: bdd
name: mongo
spec:
ports:
- name: "27017"
port: 27017
targetPort: 27017
selector:
app: fdp
tier: mongo
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: fdp
tier: mongo
name: mongo-claim0
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fdp
tier: mongo
name: mongo
spec:
replicas: 1
selector:
matchLabels:
app: fdp
tier: mongo
template:
metadata:
annotations:
labels:
app: fdp
tier: mongo
spec:
containers:
- image: mongo:4.0.12
name: mongo
ports:
- containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: mongo-claim0
restartPolicy: Always
volumes:
- name: mongo-claim0
persistentVolumeClaim:
claimName: mongo-claim0
start.sh 0 → 100755
#!/bin/sh
#
# The MIT License
# Copyright © 2017 DTL
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
kubectl apply -f mongo.yaml
kubectl apply -f blazegraph.yaml
kubectl apply -f fdp-api.yaml
kubectl apply -f fdp-client.yaml
stop.sh 0 → 100755
#!/bin/sh
#
# The MIT License
# Copyright © 2017 DTL
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
kubectl delete -f mongo.yaml
kubectl delete -f blazegraph.yaml
kubectl delete -f fdp-api.yaml
kubectl delete -f fdp-client.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment