Created
September 15, 2017 07:57
-
-
Save anonymous/0c64afe202670c4f7d24effba313a30f to your computer and use it in GitHub Desktop.
test on http://host1.labs.play-with-k8s.com/p/1c707cf1-8744-444d-a4c7-bb9b083aa9ba#1c707cf1_node1 K8s playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: elk-rc | |
| labels: | |
| k8s-app: elk | |
| spec: | |
| selector: | |
| k8s-app: elk | |
| template: | |
| metadata: | |
| labels: | |
| k8s-app: elk | |
| spec: | |
| containers: | |
| - image: eu.gcr.io/composite-watch-759/elasticsearch:latest | |
| name: elasticsearch | |
| ports: | |
| - containerPort: 9200 | |
| volumeMounts: | |
| - name: es-storage | |
| mountPath: /usr/share/elasticsearch/data | |
| - image: eu.gcr.io/composite-watch-759/logstash:latest | |
| name: logstash | |
| ports: | |
| - containerPort: 8600 | |
| - image: eu.gcr.io/composite-watch-759/kibana | |
| name: kibana | |
| env: | |
| - name: ELASTICSEARCH_URL | |
| value: http://127.0.0.1:9200 | |
| ports: | |
| - containerPort: 5601 | |
| volumes: | |
| - name: es-storage | |
| gcePersistentDisk: | |
| pdName: es-storage-v1 | |
| fsType: ext4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment