mysql_cluster: Begin add but not finished
This commit is contained in:
parent
13c2319fb3
commit
12cae34ca8
11 changed files with 309 additions and 0 deletions
32
mysql_cluster/kustomize/overlays/default/kustomization.yaml
Normal file
32
mysql_cluster/kustomize/overlays/default/kustomization.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
resources:
|
||||
- ../../base
|
||||
- phpmyadmin_ingress.yaml
|
||||
|
||||
namespace: default
|
||||
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: mysql-cluster
|
||||
|
||||
commonAnnotations:
|
||||
owner: florian
|
||||
|
||||
namePrefix: mysql-cluster-
|
||||
|
||||
images:
|
||||
- name: phpmyadmin
|
||||
newName: phpmyadmin
|
||||
newTag: "5.2"
|
||||
|
||||
patches:
|
||||
- path: replica.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: configmap
|
||||
env: mysql-configmap.properties
|
||||
|
||||
secretGenerator:
|
||||
- name: secret
|
||||
literals:
|
||||
- mysql-root-password=root
|
|
@ -0,0 +1 @@
|
|||
mysql-server=mysql-replicated-db-service
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: phpmyadmin-ingress
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: phpmyadmin-service
|
||||
port:
|
||||
number: 80
|
6
mysql_cluster/kustomize/overlays/default/replica.yaml
Normal file
6
mysql_cluster/kustomize/overlays/default/replica.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: phpmyadmin-deployment
|
||||
spec:
|
||||
replicas: 2
|
Loading…
Add table
Add a link
Reference in a new issue