Skip to content

Instantly share code, notes, and snippets.

View skinny's full-sized avatar

Mark Gerrits skinny

  • Almere, Netherlands
View GitHub Profile
1) 500GB Endurance Storage (maybe with CDN but seems very expensive compared to serving from the frontend webservers)
- Is this storage 'scalable' after creation, both in size and iops ?
2) 1 VM (3 MySQL databases) server with backup facilities (total size of all DB's 12 GB)
- probably start out with 2CPU,6GB RAM ..
3) >= 2 VM's (frontend webservers) (2CPU, 2GB MEM) (linux, nginx, php)
#!ipxe
#set base-url http://stable.release.core-os.net/amd64-usr/current
set base-url http://10.20.30.1/deploy
kernel ${base-url}/coreos_production_pxe.vmlinuz cloud-config-url=http://10.20.30.1/configs/master.yaml
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
FirstSeen LastSeen Count From SubobjectPath Reason Message
Thu, 24 Sep 2015 09:14:09 +0000 Thu, 24 Sep 2015 09:14:09 +0000 1 {scheduler } scheduled Successfully assigned eva-backend to 127.0.0.1
Thu, 24 Sep 2015 09:14:09 +0000 Thu, 24 Sep 2015 09:14:09 +0000 1 {kubelet 127.0.0.1} implicitly required container POD pulled Pod container image "gcr.io/google_containers/pause:0.8.0" already present on machine
Thu, 24 Sep 2015 09:14:09 +0000 Thu, 24 Sep 2015 09:14:09 +0000 1 {kubelet 127.0.0.1} implicitly required container POD created Created with docker id c1172a6fcc00
Thu, 24 Sep 2015 09:14:09 +0000 Thu, 24 Sep 2015 09:14:09 +0000 1 {kubelet 127.0.0.1} implicitly required container POD started Started with docker id c1172a6fcc00
Thu, 24 S
This config is used on a server with 6 physical network cards. four of them will be used to create two 2-nic bonds (bond0, bond1) and the remaining two will remain unused for now (enp5s0f0,enp5s0f1). First we enable the bonding module by writing out two files (review the bonding module options for your own environment). We then write out unit files to :
- 00-bond*.netdev : Setup two bonding interfaces (units)
- 01-*.network : Attach each interface to the right bond interface
- 99-dhcp.network : Disable DHCP on the remaining interfaces (' catch all ')
- down-interfaces.service : One time service to flush out all the assigned IP adresses and down the interfaces
- systemd-networkd.service : Restart the networkd service to 'up' the bonding interfaces
----------------------------------------------
@skinny
skinny / gist:dd39a45d51db24eb2763
Last active October 26, 2015 23:47
etcd config
#cloud-config
coreos:
units:
- name: etcd2.service
drop-ins:
- name: 50-etcd-initial-cluster.conf
content: >
[Service]
- Publiek IP adres mappen naar 172.16.250.222/172.16.239.201
- Pingen van 10.172.40.222 naar 10.172.40.242 werkt niet
@skinny
skinny / gist:2a628a991b1a3b46253c
Created November 11, 2015 21:12
cloud-config-template
#cloud-config
write_files:
- path: /opt/bin/curl-retry.sh
permissions: '0755'
owner: root
content: |
#!/bin/sh -x
until curl $@
do sleep 1
@skinny
skinny / gist:5c69c72a6ea979933eb4
Created November 11, 2015 21:19
initial-boot
#cloud-config
write_files:
- path: /opt/bin/curl-retry.sh
permissions: '0755'
owner: root
content: |
#!/bin/sh -x
until curl $@
do sleep 1
[{"id":20,"visits":26,"date":1468249200},{"id":21,"visits":31,"date":1468249200},{"id":22,"visits":42,"date":1468249200},{"id":23,"visits":26,"date":1468249200},{"id":25,"visits":39,"date":1468249200},{"id":26,"visits":35,"date":1468249200},{"id":28,"visits":33,"date":1468249200},{"id":29,"visits":19,"date":1468249200},{"id":31,"visits":55,"date":1468249200},{"id":32,"visits":15,"date":1468249200},{"id":33,"visits":26,"date":1468249200},{"id":34,"visits":20,"date":1468249200},{"id":35,"visits":48,"date":1468249200},{"id":36,"visits":54,"date":1468249200},{"id":37,"visits":55,"date":1468249200},{"id":38,"visits":65,"date":1468249200},{"id":39,"visits":21,"date":1468249200},{"id":40,"visits":25,"date":1468249200},{"id":41,"visits":48,"date":1468249200},{"id":42,"visits":43,"date":1468249200},{"id":43,"visits":25,"date":1468249200},{"id":20,"visits":42,"date":1468249500},{"id":21,"visits":28,"date":1468249500},{"id":22,"visits":10,"date":1468249500},{"id":23,"visits":51,"date":1468249500},{"id":25,"visits":48,"d
--- Day 25: Let It Snow ---
Merry Christmas! Santa is booting up his weather machine; looks like you might get a white Christmas after all.
The weather machine beeps! On the console of the machine is a copy protection message asking you to enter a code from the instruction manual. Apparently, it refuses to run unless you give it that code. No problem; you'll just look up the code in the--
"Ho ho ho", Santa ponders aloud. "I can't seem to find the manual."
You look up the support number for the manufacturer and give them a call. Good thing, too - that 49th star wasn't going to earn itself.