Skip to content

Instantly share code, notes, and snippets.

curtis ccollicutt

Block or report user

Report or block ccollicutt

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
View gist:9ef86c8b441ce1ab784bad7528cf1821
root@kata:~/go/src/ git log --format=%h -1 HEAD
root@kata:~/go/src/ uname -a
Linux kata 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@kata:~/go/src/ make test
TEST go-test
WARNING: Already running as root so will not re-run tests as non-root user.
WARNING: As a result, only a subset of tests will be run
WARNING: (run this script as a non-privileged to ensure all tests are run).
INFO: Currently running as user 'root'
ccollicutt /
Created Sep 27, 2018 — forked from herpiko/
Kubernetes notes for CKA exam preparation 💪

This notes applied to Kubernetes version 1.9.1-00 on Ubuntu Xenial.

Basic concept


Installation and starting up 🏁


  • Swap should be disabled (see /etc/fstab)
View deployment securitycontext runasuser
apiVersion: apps/v1
kind: Deployment
name: web-dep
tier: frontend
AppVersion: "3.4"
replicas: 2
View sidecar
apiVersion: v1
kind: Pod
name: nginx-latest
- name: html-data
emptyDir: {}
- name: nginx-latest-container
ccollicutt / Install ONAP on Single Node Kubernetes
Last active Sep 1, 2018
Install ONAP on Single Node Kubernetes
View Install ONAP on Single Node Kubernetes
# Create packet node
export MAX_PRICE=0.40
export FACILITY=ewr1
export PLAN=c1.xlarge.x86
packet baremetal create-device --facility $FACILITY --spot-instance \
--spot-price-max $MAX_PRICE --plan $PLAN \
--hostname k8s -s --tags controller --os-type ubuntu_16_04
View example kube-scheduler config
# ./kube-scheduler --write-config-to kube-config.yaml
I0820 20:08:32.929606 59954 server.go:100] Wrote configuration to: kube-config.yaml
# vi kube-config.yaml
# ./kube-scheduler --version
Kubernetes v1.11.0
# ./kube-scheduler --write-config-to kube-config.yaml
I0820 20:10:38.602406 60046 server.go:100] Wrote configuration to: kube-config.yaml
# cat kube-config.yaml
provider: DefaultProvider
View octavia.conf
# This is an example octavia.conf from a devstack install
transport_url = rabbit://stackrabbit:secretrabbit@
api_handler = queue_producer
bind_host =
connection = mysql+pymysql://root:secretdatabase@
bind_port = 5555
ccollicutt / karaf.log
Last active Jan 4, 2017
When adding a vxlan I get these results
View karaf.log
(venv)[curtis@ash oodle]$ ./bin/ t4
INFO: network name is t4-net
INFO: subnet name is t4-subnet
Created a new network:
| Field | Value |
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
View gist:1a67feae188443a7ae601f7b81c9fc99
exec(code, globals, locals)
File "/tmp/easy_install-hnt0j3m_/urllib3-1.18/", line 67, in <module>
File "/usr/lib64/python3.4/distutils/", line 114, in setup
(attrs['name'], msg))
SystemExit: error in urllib3 setup command: Invalid environment marker: python_version <= "2.7"
You can’t perform that action at this time.