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 | |
# install Docker | |
curl -s https://get.docker.com | bash | |
# Install kubeadm | |
apt-get update && apt-get install -y apt-transport-https curl | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list |
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
app_checks: | |
- name: os_master2_healthz | |
check_module: http_check | |
interval: 5 | |
pattern: | |
comm: dragent | |
conf: | |
url: "https://XXXXX.com/healthz" | |
tags: | |
- role:master |
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
1. wget -O docker.deb https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.10.3-0~jessie_amd64.deb && dpkg -i docker.deb | |
2. vi /lib/systemd/system/docker.service and add "--insecure-registry 172.30.0.0/16" to the docker command line | |
3. wget https://github.com/openshift/origin/releases/download/v1.4.1/openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz | |
tar -xzvf openshift-origin-server-v1.4.1-3f9807a-linux-64bit.tar.gz | |
cd openshift-origin-server-v1.4.1+3f9807a-linux-64bit | |
cp * /usr/local/bin/ | |
metadata_endpoint="http://169.254.169.254/latest/meta-data" | |
public_hostname="$( curl -s "${metadata_endpoint}/public-hostname" )" | |
public_ip="$( curl -s "${metadata_endpoint}/public-ipv4" )" |
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
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: aws-blazing-mutli-az | |
provisioner: kubernetes.io/aws-ebs | |
parameters: | |
type: io1 | |
zones: us-west-2a, us-west-2b, us-west-2c | |
iopsPerGB: "50" |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: elasticsearch-1 | |
spec: | |
storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: cassandra-1 | |
spec: | |
storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: cassandra-1 | |
spec: | |
storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: mysql | |
spec: | |
# storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: mysql | |
spec: | |
storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sysdigcloud-cassandra-1 # Cassandra node number | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
instance: "1" # Cassandra node number |
NewerOlder