apiVersion: v1beta3
kind: ReplicationController
metadata:
  labels:
    name: elasticsearch-logging
    kubernetes.io/cluster-service: "true"
  name: elasticsearch-logging
spec:
  replicas: 2
  selector:
    name: elasticsearch-logging
  template:
    metadata:
      labels:
        name: elasticsearch-logging
        kubernetes.io/cluster-service: "true"
    spec:
      containers:
      - image: gcr.io/google_containers/elasticsearch:1.3
        name: elasticsearch-logging
        ports:
        - containerPort: 9200
          name: es-port
          protocol: TCP
        - containerPort: 9300
          name: es-transport-port
          protocol: TCP
        volumeMounts:
        - name: token-system-logging
          mountPath: /etc/token-system-logging
          readOnly: true
        - name: es-persistent-storage
          mountPath: /data
      volumes:
      - name: token-system-logging
        secret:
          secretName: token-system-logging
      - name: es-persistent-storage
        emptyDir: {}