Skip to content

Instantly share code, notes, and snippets.

View codyde's full-sized avatar
👊
Smash Them Toggles and Coding Cool Things

Cody De Arkland codyde

👊
Smash Them Toggles and Coding Cool Things
View GitHub Profile
name: Find LaunchDarkly flag code references
on: push
# cancel in-flight workflow run if another push was triggered
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
launchDarklyCodeReferences:
name: LaunchDarkly Code References
runs-on: ubuntu-latest
job "frontend" {
datacenters = ["humblelabvm"]
group "frontend" {
network {
mode = "bridge"
port "web" {
to = 80
}
}
@codyde
codyde / cad-hcs-and-aks-resources.txt
Last active April 14, 2020 06:48
List of resources for help with HCS
Consul Helm Chart
https://github.com/hashicorp/consul-helm
Consul Helm Chart Reference
https://consul.io/docs/platform/k8s/helm.html
Run Consul on Kubernetes - HashiCorp Learn
https://learn.hashicorp.com/consul?track=kubernetes#kubernetes
Getting Started with Consul Service Mesh - HashiCorp Learn
@codyde
codyde / cluster.yml
Created January 3, 2020 21:00
Consul-Helm KIND Cluster
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
@codyde
codyde / values.yaml
Created January 3, 2020 20:58
Consul-Helm Values for KIND
global:
# enabled is the master enabled switch. Setting this to true or false
# will enable or disable all the components within this chart by default.
# Each component can be overridden using the component-specific "enabled"
# value.
enabled: true
# Domain to register the Consul DNS server to listen for.
domain: consul
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
kind: Deployment
metadata:
# This name uniquely identifies the Deployment
name: minio-deployment
spec:
selector:
matchLabels:
app: minio
strategy:
@codyde
codyde / blueprint.yaml
Created July 8, 2019 22:38
Docker Host Build CAS
name: Docker Host Build - Ubuntu
version: v2
inputs:
username:
type: string
password:
type: string
encrypted: true
resources:
Cloud_Machine_1:
@codyde
codyde / sample-content.yaml
Created May 7, 2019 15:14
Sample's of various blueprint expression content (operators, base64 encode, to lower, etc...)
name: CAS Expressions Demo
version: 4
formatVersion: 1
inputs:
environment:
type: string
enum:
- AWS
- vSphere
- Azure
@codyde
codyde / wordpress.yaml
Created May 1, 2019 03:37
Grant Orchards nearly acceptable WordPress Blueprint
formatVersion: 1
name: Wordpress 2.0
version: 1
inputs:
env:
type: string
title: Environment
description: Target Environment
oneOf:
- title: Dev
### STAGE 1: Build ###
FROM node:10.10-alpine as builder
COPY package.json package-lock.json ./
RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app
WORKDIR /ng-app