2017-02-01 00:45:59 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
|
|
|
name: elasticsearch-logging-v1
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: elasticsearch-logging
|
|
|
|
version: v1
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
k8s-app: elasticsearch-logging
|
|
|
|
version: v1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: elasticsearch-logging
|
|
|
|
version: v1
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
spec:
|
|
|
|
containers:
|
2017-02-03 13:41:32 +00:00
|
|
|
- image: gcr.io/google_containers/elasticsearch:v2.4.1-1
|
2017-02-01 00:45:59 +00:00
|
|
|
name: elasticsearch-logging
|
|
|
|
resources:
|
|
|
|
# need more cpu upon initialization, therefore burstable class
|
|
|
|
limits:
|
|
|
|
cpu: 1000m
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
ports:
|
|
|
|
- containerPort: 9200
|
|
|
|
name: db
|
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 9300
|
|
|
|
name: transport
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- name: es-persistent-storage
|
|
|
|
mountPath: /data
|
|
|
|
env:
|
|
|
|
- name: "NAMESPACE"
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
volumes:
|
|
|
|
- name: es-persistent-storage
|
|
|
|
emptyDir: {}
|