https://github.com/hatamiarash7/kubernetes-mysql
Deploy MySQL in kubernetes
https://github.com/hatamiarash7/kubernetes-mysql
database kubernetes mysql mysql-database
Last synced: about 2 months ago
JSON representation
Deploy MySQL in kubernetes
- Host: GitHub
- URL: https://github.com/hatamiarash7/kubernetes-mysql
- Owner: hatamiarash7
- License: gpl-3.0
- Created: 2020-03-12T12:41:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T20:32:26.000Z (about 2 years ago)
- Last Synced: 2025-02-03T18:57:45.470Z (over 1 year ago)
- Topics: database, kubernetes, mysql, mysql-database
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes MySQL
Deploy MySQL in kubernetes
## Prerequisites
First you should create a secret for youe MySQL deployment
```
echo -n "password" | base64
```
Set value in `secret.yml` and apply that
```
kubectl apply -f secret.yml
```
## Install
Creating a PersistentVolumeClaim Resource
```
kubectl apply -f pvc.yml
```
Set `MYSQL_ROOT_PASSWORD` from created secret and apply other parts
```
kubectl apply -f deployment.yml
kubectl apply -f service.yml
```
* You can [install phpMyAdmin](https://github.com/hatamiarash7/Kubernetes-phpMyAdmin) to control your MySQL deployment