我成功地创建并部署了一个带有minikube的k8s集群,使用以下配置运行了一个简单的hello-world node.js应用程序的4个副本。
应用程序的Dockerfile:
FROM ubuntu:latest
RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y nodejs npm
# TODO could uninstall some build dependencies
# debian installs `node` as `nodejs`
RUN update-alternatives --ins
如何为config设置环境变量。有人能详细解释一下吗?我正在使用windows home并尝试通过docker-compose.yml连接到k8s,但当我启动kompose时,它会显示:我已经安装了kubectl和minikube,但不知道如何设置配置文件以便启动此api
Error while deploying application: Get http://localhost:8080/api: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively r