Adding memcached

This commit is contained in:
pprokop 2016-11-18 16:49:06 +01:00
parent 73caaf06da
commit 31662dcd70
4 changed files with 55 additions and 0 deletions

3
memcached/Chart.yaml Normal file
View File

@ -0,0 +1,3 @@
description: Chart for memcached
name: memcached
version: 0.1.0

View File

@ -0,0 +1,35 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: memcached
spec:
replicas: 1
template:
metadata:
labels:
app: memcached
spec:
nodeSelector:
{{ .Values.global.deployment.control_node_label }}: enabled
containers:
- name: memcached
image: {{ .Values.global.deployment.image.memcached }}
imagePullPolicy: Always
env:
- name: INTERFACE_NAME
value: "eth0"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "memcached -v -p {{ .Values.network.port }} -U 0 -c 8192 -m 1024"
ports:
- containerPort: {{ .Values.network.port }}
readinessProbe:
tcpSocket:
port: {{ .Values.network.port }}

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: memcached
spec:
sessionAffinity: ClientIP
ports:
- port: {{ .Values.network.port }}
selector:
app: memcached

7
memcached/values.yaml Normal file
View File

@ -0,0 +1,7 @@
global:
deployment:
image:
memcached: quay.io/stackanetes/stackanetes-memcached:newton
control_node_label: openstack-control-plane
network:
port: 11211