From 9ce79f2f67854178537fbdc3cbd8af1b2718b6fb Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 29 Jul 2024 10:13:57 -0500 Subject: [PATCH] Add memcached --- kustomize/kustomization.yaml | 1 + kustomize/memcached/deployment.yaml | 21 +++++++++++++++++++++ kustomize/memcached/kustomization.yaml | 7 +++++++ kustomize/memcached/services.yaml | 13 +++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 kustomize/memcached/deployment.yaml create mode 100644 kustomize/memcached/kustomization.yaml create mode 100644 kustomize/memcached/services.yaml diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 6535214..3c0d06f 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -5,3 +5,4 @@ namespace: toy resources: - namespace.yaml - ./app + - ./memcached diff --git a/kustomize/memcached/deployment.yaml b/kustomize/memcached/deployment.yaml new file mode 100644 index 0000000..0cb6f48 --- /dev/null +++ b/kustomize/memcached/deployment.yaml @@ -0,0 +1,21 @@ +--- +kind: Deployment +apiVersion: apps/v1 +metadata: + name: toy-memcached + +spec: + selector: + matchLabels: + app: toy-memcached + template: + metadata: + labels: + app: toy-memcached + spec: + containers: + - name: toy-memcached + image: memcached:latest + ports: + - name: memcached + containerPort: 11211 diff --git a/kustomize/memcached/kustomization.yaml b/kustomize/memcached/kustomization.yaml new file mode 100644 index 0000000..e39cf60 --- /dev/null +++ b/kustomize/memcached/kustomization.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: toy +resources: + - deployment.yaml + - services.yaml diff --git a/kustomize/memcached/services.yaml b/kustomize/memcached/services.yaml new file mode 100644 index 0000000..590053d --- /dev/null +++ b/kustomize/memcached/services.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: toy-memcached + +spec: + ports: + - name: memcached + port: 11211 + targetPort: memcached + selector: + app: toy-memcached