From f58eab58c73079a60556ec3b0b383cfedde0dd5b Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 6 Dec 2024 12:22:54 +0800 Subject: [PATCH] =?UTF-8?q?build(deployment):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E7=89=88=E6=9C=AC=E5=B9=B6=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 nginx 镜像版本从 latest 更新为 1 - 注释 deployment-2.yaml 文件,保留原始内容 --- deployment-2.yaml | 48 +++++++++++++++++++++++------------------------ deployment.yaml | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/deployment-2.yaml b/deployment-2.yaml index dbc39a4..893af0f 100644 --- a/deployment-2.yaml +++ b/deployment-2.yaml @@ -1,24 +1,24 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: http-bin - name: http-bin -spec: - replicas: 1 - selector: - matchLabels: - app: http-bin - strategy: {} - template: - metadata: - creationTimestamp: null - labels: - app: http-bin - spec: - containers: - - image: kennethreitz/httpbin - name: httpbin - resources: {} -status: {} +# apiVersion: apps/v1 +# kind: Deployment +# metadata: +# creationTimestamp: null +# labels: +# app: http-bin +# name: http-bin +# spec: +# replicas: 1 +# selector: +# matchLabels: +# app: http-bin +# strategy: {} +# template: +# metadata: +# creationTimestamp: null +# labels: +# app: http-bin +# spec: +# containers: +# - image: kennethreitz/httpbin +# name: httpbin +# resources: {} +# status: {} diff --git a/deployment.yaml b/deployment.yaml index 8745084..a90496b 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -18,7 +18,7 @@ spec: app: nginx spec: containers: - - image: registry.cn-shenzhen.aliyuncs.com/suyiiyii/ds-design:latest + - image: registry.cn-shenzhen.aliyuncs.com/suyiiyii/ds-design:1 name: nginx resources: {} status: {}