Commit 937f263a authored by Jens Langhammer's avatar Jens Langhammer

helm: remove direct redis and db deployment and use external charts

parent 4674b711
Pipeline #3236 passed with stages
in 3 minutes and 28 seconds
......@@ -2,5 +2,5 @@ apiVersion: v1
appVersion: "1.8.8"
description: A Helm chart for pyazo.
name: pyazo
version: 0.1.0
version: 1.8.8
icon: https://pyazo.beryju.org/images/logo.png
dependencies:
- name: redis
repository: https://kubernetes-charts.storage.googleapis.com/
version: 5.1.0
- name: mariadb
repository: https://kubernetes-charts.storage.googleapis.com/
version: 5.2.3
digest: sha256:67a311ab3117465f4056c9e4d9c09cc0e62c1d654e5f03b7d529627c62fd58c8
generated: 2018-12-07T08:31:22.28475+01:00
dependencies:
- name: redis
version: 5.1.0
repository: https://kubernetes-charts.storage.googleapis.com/
- name: mariadb
version: 5.2.3
repository: https://kubernetes-charts.storage.googleapis.com/
kind: PersistentVolume
apiVersion: v1
metadata:
name: mysql-pv-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-pv-claim
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: Service
metadata:
name: mysql
spec:
ports:
- port: 3306
selector:
app: mysql
clusterIP: None
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql
spec:
selector:
matchLabels:
app: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: mysql
spec:
containers:
- image: mariadb:10.3.10-bionic
name: mysql
env:
- name: MYSQL_DATABASE
value: {{ .Values.config.databases.default.name }}
- name: MYSQL_PASSWORD
value: {{ .Values.config.databases.default.password }}
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: "yes"
- name: MYSQL_USER
value: {{ .Values.config.databases.default.user }}
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:
name: redis
spec:
ports:
- port: 6379
selector:
app: redis
clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
io.kompose.service: redis
name: redis
spec:
selector:
matchLabels:
app: redis
strategy:
type: Recreate
template:
metadata:
labels:
app: redis
spec:
containers:
- image: redis:latest
name: redis
resources: {}
restartPolicy: Always
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment