Skip to content

physX23/CityApp_Infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CityApp_Infra

Infra manifests for deploying city-app

  1. Create minikube cluster
minikube start
  1. Create mysql database
docker run --name=mysql --restart on-failure -d mysql/mysql-server:latest
  1. Create db and table
CREATE DATABASE mytestdb;
CREATE TABLE `cities` (   
`id` int(6) unsigned NOT NULL AUTO_INCREMENT,
`city` varchar(30) NOT NULL,
PRIMARY KEY (`id`) ) ENGINE=InnoDB;
  1. Turn on addon
minikube addons enable ingress
  1. Deploy app.yaml & ingress.yaml
kubectl -f app.yaml,ingress.yaml
  1. You can use HPA for high-availability your app
kubectl autoscale deployment city-app --cpu-percent=70 --min=1 --max=5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors