curl -XGET 'https://<domain-end-point>/_snapshot/_all
curl -XGET 'https:///_snapshot//_all
// v1.1.2 | |
var https = require('https'); | |
var zlib = require('zlib'); | |
var crypto = require('crypto'); | |
var endpoint = 'aws-elasticsearch-service-endpoint-url'; | |
// Set this to true if you want to debug why data isn't making it to | |
// your Elasticsearch cluster. This will enable logging of failed items | |
// to CloudWatch Logs. |
# First create policy | |
aws elb --region us-west-2\ | |
create-load-balancer-policy \ | |
--load-balancer-name ${elb-name} \ | |
--policy-name EnableProxyProtocol \ | |
--policy-type-name ProxyProtocolPolicyType \ | |
--policy-attributes AttributeName=ProxyProtocol,AttributeValue=True | |
# Attach the policy to the elb | |
aws elb --region us-west-2 \ |
#!/bin/bash | |
echo "Getting all statestore safe configs from S3" | |
CLUSTERS=$(kops get cluster | grep -v NAME | awk '{print $1}') | |
for CLUSTER in $CLUSTERS; do | |
if [ ! -d $CLUSTER ]; then | |
mkdir $CLUSTER | |
fi |
server { | |
listen *:443 ssl http2; | |
server_tokens off; | |
server_name www.domain.com; | |
ssl on; | |
ssl_certificate /path/to/cert; | |
ssl_certificate_key /path/to/key; | |
# Add all headers |
#!/bin/bash | |
## nvme to fstab blkid | |
## | |
## | |
## Disk mapping: | |
## Cassandra commitlog: /dev/sdb | |
## Cassandra data: /dev/sdc | |
## | |
###################################### |
#!/bin/bash | |
# | |
# https://github.com/kubernetes/kops/blob/master/docs/networking.md | |
# https://chrislovecnm.com/kubernetes/cni/choosing-a-cni-provider/ | |
# Trouble at scale | |
# https://blog.openai.com/scaling-kubernetes-to-2500-nodes/ | |
export NODE_SIZE=${NODE_SIZE:-t2.micro} | |
export NODE_COUNT='99' | |
export MASTER_SIZE=${MASTER_SIZE:-m4.large} |
#!/bin/bash | |
# | |
# https://github.com/kubernetes/kops/blob/master/docs/networking.md | |
# https://chrislovecnm.com/kubernetes/cni/choosing-a-cni-provider/ | |
# Trouble at scale | |
# https://blog.openai.com/scaling-kubernetes-to-2500-nodes/ | |
export NODE_SIZE=${NODE_SIZE:-t2.micro} | |
export NODE_COUNT='99' | |
export MASTER_SIZE=${MASTER_SIZE:-m4.large} |
#!/bin/bash | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install -y systemd apt-transport-https ca-certificates docker-ce |