How to mysql with kubectl on AWS

Overview

In this demonstration we will create a sequence for:

  • secret definition
  • mysql pod
  • mysql service
  • deployment defionition
  • deployment service

 

Create credential file

 

Create mysql pod with this definition

 

On the top of this deployment.yml pod the service definition  is necessary.

 

 

Deployment

 

Service