commit
7ffc2299b4
3
memcached/Chart.yaml
Normal file
3
memcached/Chart.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
description: Chart for memcached
|
||||||
|
name: memcached
|
||||||
|
version: 0.1.0
|
35
memcached/templates/deployment.yaml
Normal file
35
memcached/templates/deployment.yaml
Normal 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 }}
|
10
memcached/templates/service.yaml
Normal file
10
memcached/templates/service.yaml
Normal 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
7
memcached/values.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
global:
|
||||||
|
deployment:
|
||||||
|
image:
|
||||||
|
memcached: quay.io/stackanetes/stackanetes-memcached:newton
|
||||||
|
control_node_label: openstack-control-plane
|
||||||
|
network:
|
||||||
|
port: 11211
|
Loading…
Reference in New Issue
Block a user