mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Add readiness probes to Elasticsearch and Kibana logging
This commit is contained in:
parent
5726ca55d8
commit
cb9f7d17f5
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
name: elasticsearch-logging-v1
|
name: elasticsearch-logging-v1
|
||||||
@ -21,14 +21,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/elasticsearch:1.4
|
- image: gcr.io/google_containers/elasticsearch:1.4
|
||||||
name: elasticsearch-logging
|
name: elasticsearch-logging
|
||||||
livenessProbe:
|
|
||||||
name: es-liveness
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 9200
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
timeoutSeconds: 5
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9200
|
- containerPort: 9200
|
||||||
name: es-port
|
name: es-port
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
name: kibana-logging-v1
|
name: kibana-logging-v1
|
||||||
@ -22,13 +22,6 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: kibana-logging
|
- name: kibana-logging
|
||||||
image: gcr.io/google_containers/kibana:1.3
|
image: gcr.io/google_containers/kibana:1.3
|
||||||
livenessProbe:
|
|
||||||
name: kibana-liveness
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 5601
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
timeoutSeconds: 5
|
|
||||||
env:
|
env:
|
||||||
- name: "ELASTICSEARCH_URL"
|
- name: "ELASTICSEARCH_URL"
|
||||||
value: "http://elasticsearch-logging:9200"
|
value: "http://elasticsearch-logging:9200"
|
||||||
|
Loading…
Reference in New Issue
Block a user