Skip to content

Instantly share code, notes, and snippets.

View pmorie's full-sized avatar
🎯
Focusing

Paul Morie pmorie

🎯
Focusing
  • Apple
  • Raleigh, NC
View GitHub Profile
@pmorie
pmorie / gist:8027518
Created December 18, 2013 18:41
bash -eu, explained
# Source: http://fvue.nl/wiki/Bash:_Error_handling
#
#!/bin/bash -eu
# -e: Exit immediately if a command exits with a non-zero status.
# -u: Treat unset variables as an error when substituting.
(false) # Caveat 1: If an error occurs in a subshell, it isn't detected
(false) || false # Solution: If you want to exit, you have to detect the error yourself
(false; true) || false # Caveat 2: The return status of the ';' separated list is `true'
(false && true) || false # Solution: If you want to control the last command executed, use `&&'
travis_fold:start:worker_info
Worker information
hostname: production-5-worker-org-c-2-gce:281a95e6-1d80-4905-a65d-13e7f4d9e9d5
version: v2.9.3 https://github.com/travis-ci/worker/tree/a41c772c638071fbbdbc106f31a664c0532e0c36
instance: testing-gce-83b0367a-1e10-4a89-845c-d8f1b73e2715:travis-ci-sugilite-trusty-1499447160 (via amqp)
startup: 21.52117257s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: generic
before this time, when can we get drops of cat per sprint in origin
to update installer
update rbac stuff
verify if we should really stick more in the same etcd
Sept 6
cat feature freeze?
API moves to beta
security shit done
no pod preset in API
Paul is a Principal Engineer at Red Hat and is a committer to the Kubernetes project. He is currently leading the Kubernetes Service Catalog SIG and the champion of the service-catalog Kubernetes incubator repository. Before Kubernetes, he worked on the first three versions of Red Hat's OpenShift Container Platform and built multi-tenant platforms for the financial and insurance industries. He likes spending time with his wife, scale model making, and striving for perfect hair.
spec:
containers:
-
name: server
image: '172.30.115.28:5000/gogs/server@sha256:09917096250647da7d24443e1a88b271f7ff58f38145991c9f9dfd66dbbda44b'
volumeMounts:
- name: config-volume
mountPath: /etc/gogs/conf/
volumes:
- name: config-volume
FROM centos:centos7
RUN mkdir /foo
RUN echo hi > /foo/hi
RUN echo hi2 > /foo/hi2
RUN echo hi3 > /foo/hi3
RUN date
RUN yum update -y
RUN yum clean all
@pmorie
pmorie / .yaml
Created February 10, 2016 23:47
apiVersion: v1
kind: Pod
metadata:
name: secret-test-pod
spec:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh", "-c", "echo 'fsgroup rules motherfuckers'" ]
restartPolicy: Never
upgrade
get all active gears
get all logins
get all domains
get all apps with a gear
get all gears across nodes
write node level gear files
make threads per node
for each node... (theads)
fail DaemonRestart Controller Manager should not create/delete replicas across restart (12.117790176s)
fail DaemonRestart Controller Manager should not create/delete replicas across restart (12.117790176s)
fail DaemonRestart Kubelet should not restart containers across restart (12.046055105s)
fail DaemonRestart Kubelet should not restart containers across restart (12.046055105s)
fail DaemonRestart Scheduler should continue assigning pods to nodes across restart (12.059244256s)
fail DaemonRestart Scheduler should continue assigning pods to nodes across restart (12.059244256s)
fail Daemon set should run and stop complex daemon (1m15.367764446s)
fail Daemon set should run and stop complex daemon (1m15.367764446s)
fail Daemon set should run and stop simple daemon (1m14.154275959s)
fail Daemon set should run and stop simple daemon (1m14.154275959s)
@pmorie
pmorie / sublime-text-2.sh
Created October 31, 2015 01:21 — forked from henriquemoody/sublime-text-2.sh
Install Sublime Text on Fedora.
#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET VERSION
#
# TARGET Default target is "/usr/local".
# VERSION If not defined tries to get the build into the Sublime Text 2 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#