This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create tiller service account | |
kubectl -n kube-system create serviceaccount tiller | |
#Create cluster role binding for tiller | |
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | |
#Initialize tiller | |
helm init --service-account tiller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
mysqlUser: localUsr | |
mysqlPassword: localUsrxPwd# | |
mysqlRootPassword: FUnIsntSOmethingOneConsiderWhenBalancingTheUniverse | |
persistence: | |
enabled: true | |
storageClass: local-path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm install --name local-database --namespace test -f mysql.yaml stable/mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create a port forward wich exposes your mysql service to the local machine | |
kubectl port-forward svc/local-database-mysql 3306 -n test | |
MYSQL_HOST=127.0.0.1 | |
MYSQL_PORT=3306 | |
MYSQL_ROOT_PASSWORD=FUnIsntSOmethingOneConsiderWhenBalancingTheUniverse | |
#Use mysql-client to connect to the host | |
mysql -h $MYSQL_HOST -P$MYSQL_PORT -u root -p$MYSQL_ROOT_PASSWORD |
OlderNewer