From c8b91ae2b29f8b115ab87a9f715ddc214bcaf0cc Mon Sep 17 00:00:00 2001 From: maxzhang Date: Tue, 17 Dec 2019 13:53:19 +0800 Subject: [PATCH] k8s and docker build --- Examples/SimpleWeb/scripts/k8s-deploy.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Examples/SimpleWeb/scripts/k8s-deploy.yaml b/Examples/SimpleWeb/scripts/k8s-deploy.yaml index 2431ccae..fae880d6 100644 --- a/Examples/SimpleWeb/scripts/k8s-deploy.yaml +++ b/Examples/SimpleWeb/scripts/k8s-deploy.yaml @@ -15,8 +15,8 @@ spec: spec: containers: - name: yoyogodemo - image: yoyogodemo-dev:v0.0.2 - imagePullPolicy: Never #just for minikube,do not use this in production!!! + image: maxzhang1985/yoyogo:version-1.4.6 + imagePullPolicy: Always #Always 总是拉取镜像 IfNotPresent 本地有则使用本地镜像,不拉取Never 只使用本地镜像,从不拉取,即使本地没有 ports: - containerPort: 8080 livenessProbe: @@ -25,3 +25,6 @@ spec: port: 8080 initialDelaySeconds: 15 timeoutSeconds: 1 + env: + - name: PROFILE + value: "test12" \ No newline at end of file