Skip to content

Instantly share code, notes, and snippets.

View nmarukovich's full-sized avatar
💛
keeping open source open.

Natalia Marukovich nmarukovich

💛
keeping open source open.
View GitHub Profile
curl -X GET "127.0.0.1:9200/_cat/health?v"
curl -XPUT -H 'Content-Type: application/json' 'http://localhost:9200/_cluster/settings?pretty’ -d '{ "transient" : "cluster.routing.allocation.enable" : "none" } }'
curl -XPUT -H 'Content-Type: application/json' 'http://localhost:9200/_cluster/settings?pretty’ -d '{ "transient" : "cluster.routing.allocation.enable" : “all” } }'
curl -XGET 127.0.0.1:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
curl -X GET "127.0.0.1:9200/_cat/indices?v"
curl -X GET "127.0.0.1:9200/_cluster/settings?pretty&include_defaults=true"
curl -s -XGET 'localhost:9200/_cat/recovery?v' | grep -v done | awk '{ print $1, $2, $3, $5, $14, $18, $22 }' | column -t
curl -s 'localhost:9200/_cat/allocation?v'
@nmarukovich
nmarukovich / ingress rule
Last active April 21, 2019 16:36
ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: externalservice
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
ingress.kubernetes.io/ssl-redirect: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt
apiVersion: v1
kind: Service
metadata:
name: external-service
spec:
ports:
- port: 443
protocol: TCP
targetPort: 443
type: ExternalName