From f1a3f3269d16d04a95f14f854e8eed26969f4362 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 15 Nov 2024 00:17:56 +0800 Subject: [PATCH] =?UTF-8?q?build(deployment):=20=E6=B7=BB=E5=8A=A0=20http-?= =?UTF-8?q?bin=20=E5=BA=94=E7=94=A8=E7=9A=84=20Deployment=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 deployment-2.yaml 文件 - 定义了一个名为 http-bin 的 Deployment - 设置 replicas 为 1 - 使用 kennethreitz/httpbin 镜像创建容器 --- deployment-2.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 deployment-2.yaml diff --git a/deployment-2.yaml b/deployment-2.yaml new file mode 100644 index 0000000..dbc39a4 --- /dev/null +++ b/deployment-2.yaml @@ -0,0 +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: {}