- have fun with them
- projections
- filters
- resource-keys
- scripting-gcloud
- http://cloudplatform.googleblog.com/2018/03/introducing-GCPs-new-interactive-CLI.html
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-1-114924737
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-2-4d049a656f1a
This file contains hidden or 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 | |
sudo apt-get update | |
sudo apt-get install -y gpg | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y code |
This file contains hidden or 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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "3" | |
num_public_agents = "1" |
This file contains hidden or 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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "3" | |
num_public_agents = "1" |
This file contains hidden or 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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "2" | |
num_public_agents = "1" |
This file contains hidden or 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
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_pass http://kube-node-0-kubelet.kubernetes-blue.mesos:30001; | |
sub_filter_types text/html; | |
sub_filter_once off; | |
} |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This file contains hidden or 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
--- | |
- hosts: hosts | |
vars: | |
tasks: | |
- name: add filebeat yaml config for Non Agents ONLY | |
copy: src=filebeat.yml dest=/etc/filebeat/filebeat.yml owner=root group=root | |
when: "'non-agents' in group_names" | |
- name: add filebeat yaml config for Agents ONLY |
This file contains hidden or 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
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_pass http://apiserver-insecure.kubernetes.l4lb.thisdcos.directory:9000/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/; | |
sub_filter_types text/html; | |
sub_filter_once off; | |
sub_filter '="/' '="/service/kubernetes-dash/'; |