apiVersion: v1
kind: ReplicationController
metadata:
  name: fluxy
spec:
  replicas: 1
  selector:
    name: fluxy
    version: latest
  template:
    metadata:
      labels:
        name: fluxy
        version: latest
    spec:
      containers:
      - name: fluxy
        image: weaveworks/fluxy:latest
        imagePullPolicy: Never # must build manually
        ports:
        - containerPort: 3030

apiVersion: v1
kind: ReplicationController
metadata:
  name: fluxy
spec:
  replicas: 1
  selector:
    name: fluxy
    version: latest
  template:
    metadata:
      labels:
        name: fluxy
        version: latest
    spec:
      containers:
      - name: fluxy
        image: weaveworks/fluxy
        imagePullPolicy: Never # must build manually
        ports:
        - containerPort: 3030

Make fluxy deployable in Kubernetes
Make fluxy deployable in Kubernetes

- kubectl create -f testdata/fluxy-rc.yaml
- Leverage automounted ca.crt and bearer token for auth
- Option to manually specify kubectl path
- ENTRYPOINT got bigger so split it into its own script
- Use nonglobal flagset to prevent pollution
