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/github.com/kata-containers/runtime# git log --format=%h -1 HEAD
5f7fcd7
root@kata:~/go/src/github.com/kata-containers/runtime# 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/github.com/kata-containers/runtime# 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
ccollicutt / kubedingdong.md
Created Sep 27, 2018 — forked from herpiko/kubedingdong.md
Kubernetes notes for CKA exam preparation 💪
View kubedingdong.md

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

Basic concept

TO BE WRITTEN

Installation and starting up 🏁

Installation

  • Swap should be disabled (see /etc/fstab)
View deployment securitycontext runasuser
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-dep
labels:
tier: frontend
annotations:
AppVersion: "3.4"
spec:
replicas: 2
View kubernetes_commands.md
View sidecar
apiVersion: v1
kind: Pod
metadata:
name: nginx-latest
spec:
volumes:
- name: html-data
emptyDir: {}
containers:
- name: nginx-latest-container
@ccollicutt
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
algorithmSource:
provider: DefaultProvider
View octavia.conf
# This is an example octavia.conf from a devstack install
[DEFAULT]
transport_url = rabbit://stackrabbit:secretrabbit@10.101.0.144:5672/
api_handler = queue_producer
bind_host = 10.101.0.144
[api_settings]
[database]
connection = mysql+pymysql://root:secretdatabase@127.0.0.1:3306/octavia
[health_manager]
bind_port = 5555
@ccollicutt
ccollicutt / karaf.log
Last active Jan 4, 2017
When adding a vxlan I get these results
View karaf.log
(venv)[curtis@ash oodle]$ ./bin/vxlan-network.sh 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
SNIP!
exec(code, globals, locals)
File "/tmp/easy_install-hnt0j3m_/urllib3-1.18/setup.py", line 67, in <module>
File "/usr/lib64/python3.4/distutils/core.py", 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.