-
-
Save mingderwang/702deab8d5d43690496c821a0191d7e5 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: 8080 | |
| 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:8080 | |
| 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