Skip to content

Instantly share code, notes, and snippets.

View grkvlt's full-sized avatar
💭
🐧

Andrew Donald KENNEDY grkvlt

💭
🐧
View GitHub Profile
@grkvlt
grkvlt / docker-container-child-entity.bom
Last active March 20, 2017 17:17
Brooklyn catalog entry for a Docker Engine with child entities representing running containers
brooklyn.catalog:
version: 0.7
publish:
license_code: APACHE-2.0
items:
- id: docker-engine-application
name: "Docker Engine Application"
itemType: template
iconUrl: classpath://io.brooklyn.clocker.common:icons/docker.png
item:
@grkvlt
grkvlt / nginx.yaml
Last active January 23, 2017 15:48
Kubernetes Nginx Pod
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx
namespace: default
spec:
replicas: 2
selector:
app: nginx
template:
@grkvlt
grkvlt / catalog-namespaces.md
Created December 14, 2016 21:21
Namespaces for Brooklyn catalog entries

Catalog Names

Andrew Kennedy mailto:[email protected] November 2016

This document discusses ways of improving the Brooklyn catalog management, by changing from a flat, versioned namespace, to a hierarchical structure using lexical scoping rules to prevent collisions.

Current Design

@grkvlt
grkvlt / netcat-application.yaml
Last active December 12, 2016 10:51
OpenShift and Cloudsoft AMP Resources
id: netcat-application
name: "netcat-application"
location:
openshift:
endpoint: "https://OPENSHIFT_MASTER_ADDRESS:8443/"
identity: "admin"
oauthToken: "OAUTH_TOKEN_FOR_ADMIN"
namespace: "default"
privileged: true
@grkvlt
grkvlt / entity-query-language.md
Last active November 25, 2016 22:14
Entity Query language Specification

Entity Query Language

Andrew kennedy; Cloudsoft; November 2016

This is a Brooklyn DSL enhancement to allow specifying entities in a blueprint using a query language similar to XPath 1 or JSONPath 2 that would give much greater flexibility than the current system.

Syntax

The basic EQL syntax is described in the following sections.

@grkvlt
grkvlt / openshift.yaml
Created November 7, 2016 10:38
OpenShift Application Blueprint for Clocker 2.1
id: openshift
name: "openshift"
description: |
Creates an OpenShift Origin cluster with redundant master servers.
Deploys on CentOS 7 VMs in SoftLayer, on a single VLAN segment.
location:
jclouds:softlayer:
region: ams01
@grkvlt
grkvlt / clocker-single.yaml
Last active October 14, 2016 16:50
Single Docker on AWS
name: DockerEngineSingle
location:
jclouds:aws-ec2:
region: us-east-1
privateKeyFile: "~/.ssh/adk.pem"
loginUser.privateKeyFile: "~/.ssh/adk.pem"
keyPair: "adk"
templateOptions:
securityGroups:
- "sg-0da1a477"
@grkvlt
grkvlt / empty.yaml
Created October 14, 2016 16:11
EmptySoftwareProcess
location:
jclouds:aws-ec2
region: us-east-1
services:
- type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess
@grkvlt
grkvlt / clocker-development.sh
Last active October 14, 2016 15:19
Steps to set up Clocker development machine with Java, Docker, Kubernetes and AWS tools
#!/bin/sh
# setup repos
sudo yum install -y epel-release
sudo tee /etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/\$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
@grkvlt
grkvlt / mesos-rules.txt
Created September 22, 2016 16:30
AWS Mesos security group rules
SSH TCP 22 0.0.0.0/0
HTTP TCP 80 0.0.0.0/0
Custom TCP 2181 0.0.0.0/0
Custom TCP 5000 0.0.0.0/0
Custom TCP 5050 0.0.0.0/0
Custom TCP 5051 0.0.0.0/0
Custom TCP 8080 0.0.0.0/0
Custom TCP 31000-32000 0.0.0.0/0
DNS UDP 53 0.0.0.0/0