1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-05-21 03:59:24 +00:00

Switched from docker swarm to Kubernetes with rke

This commit is contained in:
2020-05-11 19:39:13 -04:00
parent 01f384ac14
commit 1e5724ec1d
30 changed files with 458 additions and 488 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ mysql_cluster_name }}-secret
type: Opaque
# use data if password is base64 encoded
#data:
# ROOT_PASSWORD: {{ mysql_root_password }}
stringData:
ROOT_PASSWORD: {{ mysql_root_password }}
---
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
name: {{ mysql_cluster_name }}
spec:
replicas: {{ mysql_replicas }}
secretName: {{ mysql_cluster_name }}-secret