https://github.com/LINXURUI69/phonebook
Prerequisites: You need download a mongo:latest Docker image to local. You need enable registry on MicroK8S.
- Go to /k8s-yamls.
- Edit /k8s-yamls/image.sh, change registry_ip to the ip address of MicroK8S private registry.
- Run image.sh to build and push images.
Prerequisites: You need enable dns and hostpath-storage on MicroK8S.
- Go to /k8s-yamls.
- Run deploy.sh to deploy app to MicroK8S.
- Go to /k8s-yamls.
- Run scale.sh.
- Go to /k8s-yamls.
- Run clean.sh.