macos boot文件
Spring-boot app is all about annotation based development and fast code deployments within embedded servers and all.
Spring-boot应用程序全部与基于注释的开发以及嵌入式服务器内的所有代码的快速部署有关。
To take it further, containerising a spring-boot is an added technical skill, which is in high demand currently.
更进一步,将弹簧靴容器化是一项附加的技术技能,目前对此有很高的要求。
So lets learn to containerise a spring-boot application. Here are the steps covered in this article:
因此,让我们学习如何对Spring-boot应用程序进行容器化。 这里是本文介绍的步骤:
- Install Virtual box 安装虚拟盒子
- Install Kubernetes on MacOS (Minikube) 在MacOS(Minikube)上安装Kubernetes
- Install network gateways (Istio-ingress) 安装网络网关(Istio-ingress)
- Create docker image 创建泊坞窗映像
- Create kubernetes yaml file 创建kubernetes yaml文件
- Deploy on kubernetes cluster (minikube) 部署在kubernetes集群(minikube)上
- Enable Port forwarding 启用端口转发
- Monitor application deployment (Kiali and Lens) 监视应用程序部署(Kiali和Lens)
Prerequisite : a. I assume you should know Spring-boot app creation and project setup before moving further. If you are not familiar with this, go through complete setup process in this article.
先决条件: 我假设您在进一步之前应该了解Spring-boot应用程序的创建和项目设置。 如果您对此不熟悉,请完成 本文中 完整的设置过程 。
b. Further, i assume you have an initial knowledge on how to create a Dockerfile to create docker image and how to create a kubernetes yaml file for deployments.
b。 此外,我假设您对如何创建Dockerfile以创建docker映像以及如何为部署创建kubernetes yaml文件具有初步的了解。
Let’s move with the scope of this article now.
现在让我们继续本文的范围。
1.安装虚拟盒子 (1. Install Virtual box)
Before installing Kubernetes (Minikube), let’s install virtualBox first. Minikube by default uses hyperkit as the VM, which has some connectivity issues with Docker images specifically on MacOS. So to get rid of those issues, we need Virtualbox as the VM.
在安装Kubernetes(Minikube)之前,让我们先安装virtualBox。 默认情况下,Minikube使用hyperkit作为VM,特别是在MacOS上,Docker镜像存在一些连接问题。 因此,要摆脱这些问题,我们需要Virtualbox作为VM。
Download the Virtual box dmg file for MacOS from