mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #8199 from satnam6502/es
Revert to using emptyDir for Elasticsearch data
This commit is contained in:
commit
5b8e70181f
@ -16,7 +16,7 @@ spec:
|
|||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/elasticsearch:1.2
|
- image: gcr.io/google_containers/elasticsearch:1.3
|
||||||
name: elasticsearch-logging
|
name: elasticsearch-logging
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9200
|
- containerPort: 9200
|
||||||
@ -29,7 +29,11 @@ spec:
|
|||||||
- name: token-system-logging
|
- name: token-system-logging
|
||||||
mountPath: /etc/token-system-logging
|
mountPath: /etc/token-system-logging
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: es-persistent-storage
|
||||||
|
mountPath: /data
|
||||||
volumes:
|
volumes:
|
||||||
- name: token-system-logging
|
- name: token-system-logging
|
||||||
secret:
|
secret:
|
||||||
secretName: token-system-logging
|
secretName: token-system-logging
|
||||||
|
- name: es-persistent-storage
|
||||||
|
emptyDir: {}
|
@ -20,6 +20,7 @@ COPY elasticsearch.yml /elasticsearch-1.5.2/config/elasticsearch.yml
|
|||||||
COPY run.sh /
|
COPY run.sh /
|
||||||
COPY elasticsearch_logging_discovery /
|
COPY elasticsearch_logging_discovery /
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
EXPOSE 9200 9300
|
EXPOSE 9200 9300
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
CMD ["/run.sh"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: elasticsearch_logging_discovery build push
|
.PHONY: elasticsearch_logging_discovery build push
|
||||||
|
|
||||||
TAG = 1.2
|
TAG = 1.3
|
||||||
|
|
||||||
build: elasticsearch_logging_discovery
|
build: elasticsearch_logging_discovery
|
||||||
docker build -t gcr.io/google_containers/elasticsearch:$(TAG) .
|
docker build -t gcr.io/google_containers/elasticsearch:$(TAG) .
|
||||||
|
@ -4,3 +4,4 @@ node.data: ${NODE_DATA}
|
|||||||
transport.tcp.port: ${TRANSPORT_PORT}
|
transport.tcp.port: ${TRANSPORT_PORT}
|
||||||
http.port: ${HTTP_PORT}
|
http.port: ${HTTP_PORT}
|
||||||
discovery.zen.ping.multicast.enabled: false
|
discovery.zen.ping.multicast.enabled: false
|
||||||
|
path.data: /data
|
||||||
|
Loading…
Reference in New Issue
Block a user