diff --git a/Examples/SimpleWeb/DOCKERFILE b/Examples/SimpleWeb/DOCKERFILE index 3160e25e..52f73d09 100644 --- a/Examples/SimpleWeb/DOCKERFILE +++ b/Examples/SimpleWeb/DOCKERFILE @@ -2,7 +2,7 @@ FROM golang ENV GO111MODULE=on ENV CGO_ENABLED 0 -ENV GOPROXY https://goproxy.cn +ENV GOPROXY https://goproxy.cn,direct RUN mkdir -p /root/gopath RUN mkdir -p /root/gopath/src 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