Twenty-nine chapters analyze with you easily complete explosion helm3 mysql

This series of articles:


Chapter one: nine analyze with you easily complete explosion  helm3 installation

Chapter II: nine analyze with you easily complete explosion  helm3  public warehouse

Chapter 3: nine analyze with you easily complete explosion  helm3  private warehouse

Chapter 4: nine analyze with you easily complete explosion helm3 chart

Chapter V: nine analyze with you easily complete explosion helm3 release

Chapter 6: nine analyze with you easily complete explosion helm3 gitlab

Chapter 7: nine analyze with you easily complete explosion helm3 nginx-ingress

Chapter 8: nine analyze with you easily complete explosion helm3 gitlab nfs

Chapter 9: nine analyze with you easily complete explosion helm3 nexus

Chapter X: nine analyze with you easily complete explosion helm3 heapster

Chapter 11: nine analyze with you easily complete explosion helm3 kubernetes-dashboard

Chapter XII: nine analyze with you easily complete explosion helm3 harbor

Chapter XIII: nine analyze with you easily complete explosion helm3 prometheus

Chapter XIV: nine analyze with you easily complete explosion helm3 grafana

Chapter XV: nine analyze with you easily complete explosion grafana associated prometheus

Chapter XVI: nine analyze with you easily complete explosion helm3 efk - elasticsearch

Chapter XVII: nine analyze with you easily complete explosion helm3 efk - kibana

Chapter XVIII: nine analyze with you easily complete explosion helm3 efk - fluentd

Chapter XIX: nine analyze with you easily install the complete explosion helm3 istio

Chapter XX: nine analyze with you easily complete explosion helm3 mysql

table of Contents


1 Introduction

        In this paper helm3 v3.0.0; k8s v1.16.3; istio 1.3.4. helm warehouse information is as follows:

spacer.gif1.png


2 mysql download

        Search helm mysql:

helm search repo mysql

clipboard2.png

        Download and unzip:

helm fetch google/mysql

tar -zxvf mysql-1.6.2.tgz


3 to create a namespace

kubectl create ns sre


4 Set mysql password

        Edit mysql / values.yaml file, modify the mysql password, as shown below:

spacer.gifclipboard3.png

        Also modify the viability probe and the container probe readiness time:

clipboard4.pngspacer.gif


5 Install nfs

        How to install nfs server, please refer to my " Easily installed after blasting nfs ", do not worry, simply to burst, allowing you to easily minute of complete explosion.

mkdir -p /data/nfs/sre/mysql

chmod 777 -R sre

echo "/data/nfs/sre 10.110.0.0/16(rw,sync,no_root_squash)" >> /etc/exports

systemctl restart nfs


6 Create pv

        Creating pv-sre-mysql-8g.yaml file:

apiVersion: v1

kind: PersistentVolume

metadata:

name: pv-sre-mysql-8g

spec:

capacity:

storage: 8Gi

volumeMode: Filesystem

accessModes:

-  ReadWriteOnce

persistentVolumeReclaimPolicy: Retain

nfs:

server: 10.110.101.106

path: /data/nfs/sre/mysql

        Creating pv:

kubectl apply -f pv-sre-mysql-8g.yaml


7 install mysql

        The first is a mysql helm release name, the second is the unzipped directory:

helm install -n sre mysql mysqlspacer.gif

clipboard5.png

        Viewing it with the helm, we found that mysql has been installed successfully:

helm list -n sre

clipboard6.png

        Since then, after blasting helm3 easy to install mysql.

Guess you like

Origin blog.51cto.com/14625168/2467110