1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| 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: docker.elastic.co/elasticsearch/elasticsearch:6.6.0 name: elasticsearch ports: - containerPort: 9200 volumeMounts: - name: es-storage mountPath: /usr/share/elasticsearch/data subPath: elasticsearch/data - image: docker.elastic.co/logstash/logstash:6.6.0 name: logstash ports: - containerPort: 9600 - containerPort: 5000 - image: docker.elastic.co/kibana/kibana:6.6.0 name: kibana env: - name: ELASTICSEARCH_URL value: http://127.0.0.1:9200 ports: - containerPort: 5601 volumes: - name: es-storage persistentVolumeClaim: claimName: pvc001
|