aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/templates/db.yaml
diff options
context:
space:
mode:
authorRHE <rebirthmonkey@gmail.com>2017-12-26 13:35:54 +0100
committerRHE <rebirthmonkey@gmail.com>2017-12-26 13:35:54 +0100
commit454e9c5f8664ea99ccea2417b6cc3ffb238cf834 (patch)
tree479a6d0fcee5ba6c17ea12370125e6681594128a /kubernetes/templates/db.yaml
parent19a69441bbcc8b5e9e334f81c66d0f3720405fdd (diff)
moon v4 re-organization
Change-Id: I73665f739f35ae18175f98d0739567e403c1fa80 Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'kubernetes/templates/db.yaml')
-rw-r--r--kubernetes/templates/db.yaml84
1 files changed, 0 insertions, 84 deletions
diff --git a/kubernetes/templates/db.yaml b/kubernetes/templates/db.yaml
deleted file mode 100644
index 38418643..00000000
--- a/kubernetes/templates/db.yaml
+++ /dev/null
@@ -1,84 +0,0 @@
-#apiVersion: v1
-#kind: PersistentVolume
-#metadata:
-# name: local-pv-1
-# labels:
-# type: local
-#spec:
-# capacity:
-# storage: 5Gi
-# accessModes:
-# - ReadWriteOnce
-# hostPath:
-# path: /tmp/data/pv-1
-#---
-#
-#apiVersion: v1
-#kind: PersistentVolumeClaim
-#metadata:
-# name: mysql-pv-claim
-# labels:
-# platform: moon
-# app: db
-#spec:
-# accessModes:
-# - ReadWriteOnce
-# resources:
-# requests:
-# storage: 5Gi
-#---
-
-apiVersion: apps/v1beta1
-kind: Deployment
-metadata:
- namespace: moon
- name: db
-spec:
- replicas: 1
- strategy:
- type: Recreate
- template:
- metadata:
- labels:
- app: db
- spec:
- containers:
- - name: db
- image: mysql:latest
- env:
- - name: MYSQL_DATABASE
- value: "moon"
- - name: MYSQL_USER
- value: "moon"
- - name: MYSQL_PASSWORD
- valueFrom:
- secretKeyRef:
- name: mysql-pass
- key: password_moon.txt
- - name: MYSQL_ROOT_PASSWORD
- valueFrom:
- secretKeyRef:
- name: mysql-root-pass
- key: password_root.txt
- ports:
- - containerPort: 3306
- name: mysql
-# volumeMounts:
-# - name: mysql-persistent-storage
-# mountPath: /var/lib/mysql
-# volumes:
-# - name: mysql-persistent-storage
-# persistentVolumeClaim:
-# claimName: mysql-pv-claim
----
-apiVersion: v1
-kind: Service
-metadata:
- namespace: moon
- name: db
-spec:
- ports:
- - port: 3306
- selector:
- app: db
---- \ No newline at end of file