From d7f365e95ec04676a0c86f3feebf808d37751079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A6=83=E6=98=8C=E6=B3=A2?= Date: Mon, 11 Apr 2022 08:48:37 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20deploy.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/deploy.yaml b/deploy.yaml index 328ac6e..893b83b 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -38,3 +38,19 @@ spec: dnsPolicy: ClusterFirst restartPolicy: Always terminationGracePeriodSeconds: 30 + +--- +kind: Service +apiVersion: v1 +metadata: + name: $IMAGES + namespace: yanxuan +spec: + ports: + - port: 80 + protocol: TCP + targetPort: 80 + selector: + app: $IMAGES + type: ClusterIP +