apiVersion: v1
kind: ReplicationController
metadata:
  name: grafana
spec:
  replicas: 1
  # selector identifies the set of Pods that this
  # replication controller is responsible for managing
  selector:
    app: grafana
  # podTemplate defines the 'cookie cutter' used for creating
  # new pods when necessary
  template:
    metadata:
      labels:
        # Important: these labels need to match the selector above
        # The api server enforces this constraint.
        app: grafana
    spec:
      containers:
      - name: grafana
        image: kamon/grafana_graphite
        ports:
        - containerPort: 80
        - containerPort: 81
        - containerPort: 2003
