This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: cassandra | |
labels: | |
app: cassandra | |
spec: | |
serviceName: cassandra | |
replicas: 3 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
usage() { | |
cat <<EOF | |
Generate certificate suitable for use with an sidecar-injector webhook service. | |
This script uses k8s' CertificateSigningRequest API to a generate a | |
certificate signed by k8s CA suitable for use with sidecar-injector webhook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#version:1.0 | |
#installing go 1.12.4 | |
cd ~ | |
curl -O https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz | |
tar xvf go1.12.4.linux-amd64.tar.gz | |
rm go1.12.4.linux-amd64.tar.gz | |
sudo chown -R root:root ./go | |
sudo mv go /usr/local |