Add memcached

This commit is contained in:
Ryan Cavicchioni 2024-07-29 10:13:57 -05:00
parent c57d3303ed
commit 9ce79f2f67
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
4 changed files with 42 additions and 0 deletions

View File

@ -5,3 +5,4 @@ namespace: toy
resources: resources:
- namespace.yaml - namespace.yaml
- ./app - ./app
- ./memcached

View File

@ -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

View File

@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: toy
resources:
- deployment.yaml
- services.yaml

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: toy-memcached
spec:
ports:
- name: memcached
port: 11211
targetPort: memcached
selector:
app: toy-memcached