apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: demo
spec:
replicas: 1
template:
metadata:
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
date | symbol | tx | cost | |
---|---|---|---|---|
1/1/2018 | GOOG | 3 | 500 | |
1/2/2018 | GOOG | 6 | 1000 | |
1/3/2018 | GOOG | 1 | 1500 | |
1/4/2018 | GOOG | -1 | 500 | |
1/5/2018 | GOOG | -1 | 1000 | |
1/6/2018 | GOOG | 1 | 500 | |
1/7/2018 | GOOG | 1 | 1000 | |
1/8/2018 | AAPL | 5 | 1000 | |
1/9/2018 | AAPL | 3 | 1000 |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: store-autoscale | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: store-autoscale | |
template: |
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
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: traffic-test | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: store | |
namespace: traffic-test |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: netgen | |
spec: | |
selector: | |
app: netgen | |
ports: | |
- protocol: TCP | |
port: 5000 |
root@node1:/# git clone https://github.com/mark-church/docker-access-control.git
Cloning into 'docker-access-control'...
remote: Counting objects: 20, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 20 (delta 4), reused 20 (delta 4), pack-reused 0
Unpacking objects: 100% (20/20), done.
Checking connectivity... done.
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 | |
# A tool that can be used to automate and schedule regular backups of UCP and DTR. | |
# Run this tool on a UCP controller. | |
# It will take both UCP and DTR backups sequentially and then save | |
# the backups to the pwd of the UCP controller. | |
# set environment variables | |
USERNAME="admin" | |
PASSWORD="fake-password" |
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 | |
# set environment variables | |
USERNAME="admin" | |
PASSWORD="fake-password" | |
UCP_URL="54.190.20.45" | |
UCP_VERSION="2.1.5" | |
DTR_URL="34.214.139.101" | |
DTR_VERSION="2.3.3" |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.define "node1" do |node1| | |
node1.vm.hostname = 'node1' | |
node1.vm.network "private_network", type: "dhcp" | |
node1.vm.provision :shell, path: "bootstrap.sh" | |
end | |
config.vm.define "node2" do |node2| |
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
mark | admin | admin | |
---|---|---|---|
mark | scheduler | scheduler | |
mark | kubelet | kubelet |
NewerOlder