镜像仓库,镜像已更新,版本没更新,
K8S 拉取后,还是早的服务,原因:imagePullPolicy 镜像拉取策略 默认为本地有了就不拉取,需要修改
[root@k8smaster ~]# kubectl edit deployment/javademo1
.....
spec:
containers:
- image: registry.cn-shanghai.aliyuncs.com/vipsoft/vipsoft:4.3
imagePullPolicy: IfNotPresent
name: vipsoft
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
.....
imagePullPolicy: IfNotPresent
Always :总是拉取 pull
IfNotPresent: 默认值,本地有则使用本地镜像,不拉取
Never:只使用本地镜像,从不拉取