apiVersion: v1
kind: ReplicationController
metadata:
  name: kibana-logging-v2
  namespace: kube-system
  labels:
    k8s-app: kibana-logging
    version: v2
    #kubernetes.io/cluster-service: "true"
spec:
  replicas: 1
  selector:
    k8s-app: kibana-logging
    version: v2
  template:
    metadata:
      labels:
        k8s-app: kibana-logging
        version: v2
        #kubernetes.io/cluster-service: "true"
    spec:
      containers:
      - name: kibana-logging
        #build kibana-image first to use latest version from your local image
        image: lex13/kibana:4.6.1
        #image: gcr.io/google_containers/kibana:1.3
        env:
          - name: ELASTICSEARCH_URL
            value: "http://elasticsearch-logging:9200"
          - name: SERVER_BASEPATH
            value: /api/v1/namespaces/default/services/kibana:http/proxy
        ports:
        - containerPort: 5601
          name: http
