Adds memcached and openproject apps.
This commit is contained in:
42
apps/memcached/deployment.yaml
Normal file
42
apps/memcached/deployment.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: memcached
|
||||
spec:
|
||||
replicas: {{ .apps.memcached.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
component: cache
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: cache
|
||||
spec:
|
||||
containers:
|
||||
- name: memcached
|
||||
image: {{ .apps.memcached.image }}
|
||||
ports:
|
||||
- containerPort: {{ .apps.memcached.port }}
|
||||
name: memcached
|
||||
args:
|
||||
- -m
|
||||
- {{ .apps.memcached.memoryLimit }}
|
||||
- -c
|
||||
- "{{ .apps.memcached.maxConnections }}"
|
||||
- -p
|
||||
- "{{ .apps.memcached.port }}"
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .apps.memcached.resources.requests.memory }}
|
||||
cpu: {{ .apps.memcached.resources.requests.cpu }}
|
||||
limits:
|
||||
memory: {{ .apps.memcached.resources.limits.memory }}
|
||||
cpu: {{ .apps.memcached.resources.limits.cpu }}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 11211
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
13
apps/memcached/kustomization.yaml
Normal file
13
apps/memcached/kustomization.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: memcached
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: memcached
|
||||
managedBy: kustomize
|
||||
partOf: wild-cloud
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
19
apps/memcached/manifest.yaml
Normal file
19
apps/memcached/manifest.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: memcached
|
||||
description: Memcached is an in-memory key-value store for small chunks of arbitrary data, commonly used as a cache layer.
|
||||
version: 1.6.32
|
||||
icon: https://memcached.org/memcached-logo.png
|
||||
requires: []
|
||||
defaultConfig:
|
||||
image: memcached:1.6.32-alpine
|
||||
port: 11211
|
||||
memoryLimit: 64m
|
||||
maxConnections: 1024
|
||||
replicas: 1
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 128Mi
|
||||
cpu: 200m
|
||||
requiredSecrets: []
|
4
apps/memcached/namespace.yaml
Normal file
4
apps/memcached/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: memcached
|
12
apps/memcached/service.yaml
Normal file
12
apps/memcached/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: memcached
|
||||
spec:
|
||||
ports:
|
||||
- port: {{ .apps.memcached.port }}
|
||||
targetPort: {{ .apps.memcached.port }}
|
||||
protocol: TCP
|
||||
name: memcached
|
||||
selector:
|
||||
component: cache
|
Reference in New Issue
Block a user