brew install coredns
mkdir ~/.config/coredns
cd ~/.config/coredns
git co https://github.com/codygreen/codygreen.local.git
ln -s ~/.config/coredns /usr/local/etc/
sudo brew services restart coredns
sudo mkdir -v /etc/resolver
printf "port 1053\nnameserver 127.0.0.1\n" > /etc/resolver/codygreen.local
This file contains 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 | |
home=/home/ubuntu | |
creds=$home/.aws/credentials | |
caURL="http://10.1.1.254/cloudAccounts" | |
apiKey=`curl -s $caURL | jq '.[][] | .apiKey'` | |
apiSecret=`curl -s $caURL | jq '.[][] | .apiSecret'` | |
region=`curl -s $caURL | jq '.[][] | .regions[]'` | |
sudo -u ubuntu mkdir -p $home/.aws | |
sudo -u ubuntu touch $creds |
This file contains 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
# NOTE: This is a snipit of code and not a complete terraform file | |
# Assumes BIG-IQ information is stored in an Azure Key Vault | |
# Get BIG-IQ Information | |
data "azurerm_key_vault_secret" "bigiq_host" { | |
name = "bigiq-host" | |
key_vault_id = "${data.azurerm_key_vault.vault.id}" | |
} | |
data "azurerm_key_vault_secret" "bigiq_user" { | |
name = "bigiq-user" | |
key_vault_id = "${data.azurerm_key_vault.vault.id}" |
This file contains 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
- Name: Deploy | |
Actions: | |
- Name: DeploySource | |
InputArtifacts: | |
- Name: SourceOutput | |
ActionTypeId: | |
Category: Deploy | |
Owner: AWS | |
Version: "1" | |
Provider: "S3" |
This file contains 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
--- # Deploy a BIG-IP in AWS | |
- name: Deploy BIG-IP | |
hosts: localhost | |
gather_facts: false | |
vars: | |
stack_name: "my-ansible-test" | |
region: us-east-2 | |
template_url: https://s3.amazonaws.com/f5-cft/f5-existing-stack-payg-1nic-bigip.template | |
vpc: vpc-1234567890 |
This file contains 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
--- # Delete a BIG-IP in AWS | |
- name: Delete BIG-IP | |
hosts: localhost | |
gather_facts: false | |
tasks: | |
- name: delete a BIG-IP in AWS via CFT | |
cloudformation: |
This file contains 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
sudo: enabled | |
services: | |
- docker | |
language: node_js | |
node_js: | |
- "8" | |
before_install: | |
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ | |
- curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin/ |
This file contains 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: v1 | |
kind: Service | |
metadata: | |
name: appABC | |
labels: | |
app: appABC | |
spec: | |
type: NodePort | |
ports: | |
- port: 3000 |
This file contains 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: skaffold/v1alpha2 | |
kind: Config | |
build: | |
artifacts: | |
- imageName: codygreen/application | |
deploy: | |
kubectl: | |
manifests: | |
- ./k8s/k8s-* |