Skip to content

Instantly share code, notes, and snippets.

View yifan-gu's full-sized avatar

Yifan Gu yifan-gu

  • San Francisco
View GitHub Profile

Install dependencies

We have two kinds of dependencies in this project: tools and angular framework code. The tools help us manage and test the application.

npm is configured to automatically run bower install and gulp. Before you run the application for the first time, simply run this command from the www/master directory:

@yifan-gu
yifan-gu / badmount_manifest.json
Created June 5, 2015 01:34
badmount_manifest.json
{
"acVersion": "0.5.1+git",
"acKind": "PodManifest",
"apps": [
{
"name": "coreos.com/etcd",
"image": {
"id": "sha512-86aa5fa7158bf69d9b1078f2c557b971315bf4304f3036c4518ebd26c7205cdf"
},
"app": {

Build:

$ make clean
$ hack/build-go.sh

To start a local cluster using rkt:

$ CONTAINER_RUNTIME=rkt RKT=$PATH_TO_RKT hack/local-up-cluster.sh
# Copy of pod.yaml without file extension for test
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
name: nginx
spec:
containers:
- name: nginx
# Copy of pod.yaml without file extension for test
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
name: nginx
spec:
containers:
- name: nginx
@yifan-gu
yifan-gu / dex-kubernetes.md
Last active January 26, 2025 14:44
dex/kubernetes guide

Create CA cert/key files

In order to enable oidc authenticator in kube-apiserver, we need to have TLS enabled between kubectl and kube-apiserver, as well as between kube-apiserver and OpenID Provider(dex-worker here)

For simplicity, we will use cfssl to create the bundles.

Start dex worker

Checkout and build dex

package main
import (
"fmt"
"golang.org/x/crypto/bcrypt"
)
func main() {
@yifan-gu
yifan-gu / line.md
Created September 3, 2015 21:00
line

here is line1

here is line2

vs

here is line1
here is line2

@yifan-gu
yifan-gu / testsyscall.go
Created October 2, 2015 21:00
testsyscall.go
package main
import (
"fmt"
"os"
"syscall"
"time"
)
import "runtime"
@yifan-gu
yifan-gu / e2e.log
Created October 9, 2015 00:13
e2e tests rkt nspawn stage1 aci
>>> testContext.KubeConfig: /home/yifan/.kubernetes_auth
Oct 8 15:07:08.269: INFO: Waiting up to 10m0s for all pods (need at least 0) in namespace 'kube-system' to be running and ready
Oct 8 15:07:08.272: INFO: 0 / 0 pods in namespace 'kube-system' are running and ready (0 seconds elapsed)
Oct 8 15:07:08.272: INFO: expected 0 pod replicas in namespace 'kube-system', 0 are Running and Ready.
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1444342027 - Will randomize all specs
Will run 139 of 185 specs
EmptyDir volumes