2015-06-19 23:58:20 +00:00
|
|
|
apiVersion: v1
|
2015-04-23 19:45:16 +00:00
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
2015-05-18 22:53:01 +00:00
|
|
|
name: elasticsearch-logging-v1
|
2015-06-25 04:55:40 +00:00
|
|
|
namespace: kube-system
|
2015-04-23 19:45:16 +00:00
|
|
|
labels:
|
2015-05-18 22:53:01 +00:00
|
|
|
k8s-app: elasticsearch-logging
|
2015-05-18 21:30:22 +00:00
|
|
|
version: v1
|
2015-04-23 19:45:16 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
2017-02-25 00:53:12 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2015-04-23 19:45:16 +00:00
|
|
|
spec:
|
2015-05-08 20:48:51 +00:00
|
|
|
replicas: 2
|
2015-04-23 19:45:16 +00:00
|
|
|
selector:
|
2015-05-18 22:53:01 +00:00
|
|
|
k8s-app: elasticsearch-logging
|
2015-05-18 21:30:22 +00:00
|
|
|
version: v1
|
2015-04-23 19:45:16 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2015-05-18 22:53:01 +00:00
|
|
|
k8s-app: elasticsearch-logging
|
2015-05-18 21:30:22 +00:00
|
|
|
version: v1
|
2015-04-23 19:45:16 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
spec:
|
|
|
|
containers:
|
2017-03-07 06:33:37 +00:00
|
|
|
- image: gcr.io/google_containers/elasticsearch:v2.4.1-2
|
2016-10-17 19:04:25 +00:00
|
|
|
name: elasticsearch-logging
|
2015-07-01 22:08:35 +00:00
|
|
|
resources:
|
2016-09-21 11:55:43 +00:00
|
|
|
# need more cpu upon initialization, therefore burstable class
|
2015-07-01 22:08:35 +00:00
|
|
|
limits:
|
2016-09-21 11:55:43 +00:00
|
|
|
cpu: 1000m
|
2015-12-04 15:21:12 +00:00
|
|
|
requests:
|
|
|
|
cpu: 100m
|
2015-04-23 19:45:16 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 9200
|
2015-06-27 21:00:31 +00:00
|
|
|
name: db
|
2015-04-23 19:45:16 +00:00
|
|
|
protocol: TCP
|
|
|
|
- containerPort: 9300
|
2015-06-27 21:00:31 +00:00
|
|
|
name: transport
|
2015-04-23 19:45:16 +00:00
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
2015-05-13 19:36:49 +00:00
|
|
|
- name: es-persistent-storage
|
|
|
|
mountPath: /data
|
2016-11-18 16:56:55 +00:00
|
|
|
env:
|
|
|
|
- name: "NAMESPACE"
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2015-04-23 19:45:16 +00:00
|
|
|
volumes:
|
2015-05-13 19:36:49 +00:00
|
|
|
- name: es-persistent-storage
|
2015-06-02 20:39:10 +00:00
|
|
|
emptyDir: {}
|