diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 00000000..7d2b59ea --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,18 @@ +apuVersion: apps/v1 +kind: Deployment +metadata: + name: pulsate-app +spec: + selector: + matchLabels: + app: pulsate-app + spec: + containers: + - name: pulsate-app-hello + image: hello + resources: + limits: + memory: "128Mi" + cpu: "500m" + ports: + - containerPort: 8000 diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 00000000..15e44b42 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,11 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +commonLabels: + app: pulsate-app +resources: +- deployment.yaml +- service.yaml +configMapGenerator: +- literals: + - KEY=value + name: pulsate-app-map diff --git a/service.yaml b/service.yaml new file mode 100644 index 00000000..9091d6e5 --- /dev/null +++ b/service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: pulsate-app +spec: + selector: + app: pulsate-app + ports: + - port: 8000 + targetPort: 8000