From 02d18b4d18fc3fd6c74e6ef9e6cce7627400b75a Mon Sep 17 00:00:00 2001 From: Marco van Zijl Date: Thu, 7 Nov 2024 21:24:18 +0100 Subject: [PATCH] initial commit --- app-test-1/app-test-1.yaml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app-test-1/app-test-1.yaml diff --git a/app-test-1/app-test-1.yaml b/app-test-1/app-test-1.yaml new file mode 100644 index 0000000..c2a7858 --- /dev/null +++ b/app-test-1/app-test-1.yaml @@ -0,0 +1,43 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: app-test-1 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: app-test-1-deploy + namespace: app-test-1 +spec: + replicas: 1 + selector: + matchLabels: + app: app-test-1 + template: + metadata: + labels: + app: app-test-1 + spec: + containers: + - name: app-test-1 + image: nginx + ports: + - name: web + containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: app-test-1-svc + namespace: app-test-1 + labels: + app: app-test-1 +spec: + type: ClusterIP + ports: + - name: http + port: 80 + targetPort: 80 + protocol: TCP + selector: + app: app-test-1