diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..22a6ee1 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-world +spec: + replicas: 1 + selector: + matchLabels: + app: hello-world + template: + metadata: + labels: + app: hello-world + spec: + containers: + - name: hello-world + image: nginxdemos/hello + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: hello-world +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: hello-world diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 0000000..42835f5 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- deployment.yaml