diff --git a/workspace/q03/base/deployment.yaml b/workspace/q03/base/deployment.yaml new file mode 100644 index 0000000..c955252 --- /dev/null +++ b/workspace/q03/base/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: store-api +spec: + replicas: 1 + selector: + matchLabels: + app: store-api + template: + metadata: + labels: + app: store-api + spec: + containers: + - name: api + image: nginx:1.25 + ports: + - containerPort: 80 diff --git a/workspace/q03/base/kustomization.yaml b/workspace/q03/base/kustomization.yaml new file mode 100644 index 0000000..bdc04f9 --- /dev/null +++ b/workspace/q03/base/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +metadata: + namespace: store-prod +resources: + - deployment.yaml + - service.yaml diff --git a/workspace/q03/base/service.yaml b/workspace/q03/base/service.yaml new file mode 100644 index 0000000..5935e22 --- /dev/null +++ b/workspace/q03/base/service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: store-api +spec: + selector: + app: store-api + ports: + - port: 80 + targetPort: 80