From cb4613f913eaad2d37be9bcc488bcfd8fcff94e2 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 15 Nov 2024 21:53:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(deployment):=20=E5=B0=86=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E4=BB=8E=20gatewayyy=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E4=B8=BA=20nginix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新了 deployment、ingress 和 service 文件中的应用名称 - 修改了相关的服务和 Ingress 资源名称 - 更新了容器镜像地址 --- deployment.yaml | 8 ++++---- ingress.yaml | 6 +++--- service.yaml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index 138b86e..b76af7b 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -3,19 +3,19 @@ kind: Deployment metadata: creationTimestamp: null labels: - app: gatewayyy - name: gatewayyy + app: nginix + name: nginix spec: replicas: 1 selector: matchLabels: - app: gatewayyy + app: nginix strategy: {} template: metadata: creationTimestamp: null labels: - app: gatewayyy + app: nginix spec: containers: - image: docker.m.ixdev.cn/library/nginx:latest diff --git a/ingress.yaml b/ingress.yaml index d627be2..26fa13a 100644 --- a/ingress.yaml +++ b/ingress.yaml @@ -1,16 +1,16 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: gatewayyy-ingress + name: nginix-ingress spec: rules: - - host: gatewayyy.example.com + - host: nginix.example.com http: paths: - path: / pathType: Prefix backend: service: - name: gatewayyy-service + name: nginix-service port: number: 80 \ No newline at end of file diff --git a/service.yaml b/service.yaml index 95e2da5..d5ef7c7 100644 --- a/service.yaml +++ b/service.yaml @@ -1,10 +1,10 @@ apiVersion: v1 kind: Service metadata: - name: gatewayyy-service + name: nginix-service spec: selector: - app: gatewayyy + app: nginix ports: - protocol: TCP port: 80