Skip to content

Instantly share code, notes, and snippets.

View mark-church's full-sized avatar

Mark Church mark-church

View GitHub Profile
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: store-autoscale
spec:
replicas: 2
selector:
matchLabels:
app: store-autoscale
template:
kind: Namespace
apiVersion: v1
metadata:
name: traffic-test
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: store
namespace: traffic-test

Deploy Test Application

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: demo
spec:
  replicas: 1
  template:
    metadata:
kind: Service
apiVersion: v1
metadata:
name: netgen
spec:
selector:
app: netgen
ports:
- protocol: TCP
port: 5000

Clone repo for the lab setup

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.
#!/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"
@mark-church
mark-church / docker-ee-backup.sh
Last active February 21, 2019 05:31
A backup tool that backs up UCP and DTR
#!/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"
@mark-church
mark-church / Vagrantfile
Last active June 4, 2017 19:48
Docker 17.06 Local Scope Swarm Networking
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|
mark admin admin
mark scheduler scheduler
mark kubelet kubelet