moved kubernetes configs to new devops repository

pull/4/head
Chris Veilleux 2018-09-10 00:11:00 -05:00
parent ac97e54ae3
commit 098c6fd2ae
6 changed files with 0 additions and 120 deletions

View File

@ -1,5 +0,0 @@
# Define a service account that all the kubernetes objects will run as
apiVersion: v1
kind: ServiceAccount
metadata:
name: selene

View File

@ -1,27 +0,0 @@
# Deploy the Selene Skill Service API Docker image the Kubernetes cluster.
# Make the deployment visible to the selene-skill service so that it
# can communicate with the database.
apiVersion: apps/v1
kind: Deployment
metadata:
name: selene-skill-api
labels:
app: selene-skill
spec:
replicas: 1
selector:
matchLabels:
app: selene-skill
template:
metadata:
labels:
app: selene-skill
spec:
serviceAccount: selene
containers:
- name: skill-skill-api
image: docker.mycroft.ai/selene-skill-api
imagePullPolicy: IfNotPresent
ports:
- name: selene-skill-api
containerPort: 5000

View File

@ -1,15 +0,0 @@
# Claim a portion of the storage allocated for the Selene Skill Service for
# storage of the database data.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: selene-skill-db
labels:
app: selene-skill
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

View File

@ -1,19 +0,0 @@
# Define a persistent volume that will be used to store the data underlying
# the pods running in the Selene Skill Service
apiVersion: v1
kind: PersistentVolume
metadata:
name: selene-skill-db
labels:
app: selene-skill
type: local
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: manual
hostPath:
path: /data/db/

View File

@ -1,34 +0,0 @@
# Deploy a MongoDB docker image for the the Selene Skill Service DB
# to the Kubernetes cluster. Make the deployment visible to the
# selene-skill service so that it can communicate with the API.
apiVersion: apps/v1
kind: Deployment
metadata:
name: selene-skill-db
labels:
app: selene-skill
spec:
selector:
matchLabels:
app: selene-skill
replicas: 1
template:
metadata:
labels:
app: selene-skill
spec:
serviceAccount: selene
containers:
- name: skill-db
image: mongo
ports:
- name: skill-db
containerPort: 27017
hostPort: 27017
volumeMounts:
- name: skill-db-data
mountPath: /data/db/
volumes:
- name: skill-db-data
persistentVolumeClaim:
claimName: selene-skill-db

View File

@ -1,20 +0,0 @@
# Kubernetes service that exposes the skill API and DB as a single service
apiVersion: v1
kind: Service
metadata:
name: selene-skill
labels:
app: selene-skill
spec:
ports:
- name: skill-api
port: 5000
protocol: TCP
targetPort: 5000
- name: skill-db
port: 27017
protocol: TCP
targetPort: 27017
selector:
app: selene-skill
type: NodePort