Skip to content

Instantly share code, notes, and snippets.

@mike-neck
Created August 12, 2018 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-neck/d268274dc00fa8969eb2e83a04e52b22 to your computer and use it in GitHub Desktop.
Save mike-neck/d268274dc00fa8969eb2e83a04e52b22 to your computer and use it in GitHub Desktop.
elasticsearch を minikube で動かしたときの yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch
labels:
run: elasticsearch
spec:
replicas: 1
selector:
matchLabels:
run: elasticsearch
template:
metadata:
labels:
run: elasticsearch
spec:
containers:
- image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
name: elasticsearch
livenessProbe:
httpGet:
path: /_cat/health
port: 9200
initialDelaySeconds: 5
timeoutSeconds: 2
periodSeconds: 20
failureThreshold: 4
ports:
- containerPort: 9200
name: http
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
spec:
type: LoadBalancer
selector:
run: elasticsearch
ports:
- protocol: TCP
port: 9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment