Skip to content

Instantly share code, notes, and snippets.

Everett Toews etoews

Block or report user

Report or block etoews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@etoews
etoews / neutron.sh
Created Feb 27, 2014
Create a Neutron network, subnet, and port and boot an instance with the port
View neutron.sh
OS_AUTH_URL=http://162.242.242.161:5000/v2.0/
OS_REGION_NAME=RegionOne
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_PASSWORD=devstack
NET_NAME="test1-net"
IP_CIDR=192.168.0.0/24
IP_START=192.168.0.10
IP_END=192.168.0.20
View deployment-first-crack.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ghost
labels:
role: blog
spec:
replicas: 1
template:
metadata:
View Dockerfile
FROM alpine:3.5
COPY cat-etc-hosts.sh .
RUN chmod u+x cat-etc-hosts.sh
CMD ["./cat-etc-hosts.sh"]
@etoews
etoews / croc-hunter.sh
Created May 21, 2017
Rough notes on getting this "Zero to Kubernetes CI/CD in 5 minutes with Jenkins and Helm" demo https://www.youtube.com/watch?v=eMOzF_xAm7w running on MS Azure Container Service.
View croc-hunter.sh
# https://github.com/Microsoft/azure-docs/blob/master/articles/container-service/container-service-kubernetes-walkthrough.md
alias az="docker run --rm --volume ${HOME}:/root azuresdk/azure-cli-python az"
az login
RESOURCE_GROUP=kubernetes
LOCATION=southcentralus
DNS_PREFIX=phymata
CLUSTER_NAME=kubernetes
View 1_setup.sh
export OS_USERNAME=your-rackspace-username
export OS_PASSWORD=your-rackspace-password
mkdir openstack-sdk
cd openstack-sdk/
virtualenv -p python3 --no-site-packages venv
source venv/bin/activate
pip3 install openstacksdk
python3
@etoews
etoews / local.conf
Created Apr 18, 2014
DevStack local.conf for OpenStack Icehouse
View local.conf
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
# Services
View ca.crt
-----BEGIN CERTIFICATE-----
MIIDhDCCAmygAwIBAgIQNu0nhr9HM4pbXdU27a2hFTANBgkqhkiG9w0BAQsFADBc
MQkwBwYDVQQGEwAxCTAHBgNVBAgTADEJMAcGA1UEBxMAMQkwBwYDVQQREwAxETAP
BgNVBAoTCGJvb3RrdWJlMQkwBwYDVQQLEwAxEDAOBgNVBAMTB2t1YmUtY2EwHhcN
MTcxMTA2MTUxMzAxWhcNMjAxMTA1MTUxMzAxWjBcMQkwBwYDVQQGEwAxCTAHBgNV
BAgTADEJMAcGA1UEBxMAMQkwBwYDVQQREwAxETAPBgNVBAoTCGJvb3RrdWJlMQkw
BwYDVQQLEwAxEDAOBgNVBAMTB2t1YmUtY2EwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQCuZf9T+FHGHoQSWMtLeYfFworEKercP1iOK4jK+JB3Suehu+aE
7cwGkTWDJfyuIV4jQ0hbKMvbMtTnjnWLHp3+TcoPjaHT8jDD8xLLY/sEU5E30dzc
GhB6JZrp+8OsqifhtMwq/DBE6oGDNkNKsZCh6Fqws+NmWWeAF6lDHECH3qTFmvoC
View app.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app
data:
MYSQL_HOST: "db"
MYSQL_DATABASE: "auth"
MYSQL_USER: "app"
MYSQL_PASSWORD: "password"
MYSQL_ROOT_PASSWORD: "rootpassword"
@etoews
etoews / .gitignore
Last active Aug 27, 2017
Code for Inject an Executable Script into a Container in Kubernetes http://blog.phymata.com/2017/08/27/managing-env-vars-and-secrets-in-kubernetes/
View .gitignore
*
!.gitignore
!README.md
!template.sh
View k8s-deployment-options.md
  1. kubeadm
  1. bootkube
  • https://github.com/kubernetes-incubator/bootkube
  • a helper tool for launching self-hosted Kubernetes clusters. when launched, bootkube will act as a temporary Kubernetes control-plane (api-server, scheduler, controller-manager), which operates long enough to bootstrap a replacement self-hosted control-plane.
  1. kops
You can’t perform that action at this time.