{
  "apiVersion" : "v1",
  "kind" : "Template",
  "labels" : { },
  "metadata" : {
    "annotations" : {
      "description" : "Provides the [Console](http://fabric8.io/guide/console.html) for working with Kubernetes and Fabric8",
      "fabric8.fabric8/summary" : "[Fabric8 Console](http://fabric8.io/v2/console.html) for working with Fabric8 and Kubernetes",
      "fabric8.fabric8/iconUrl" : "https://cdn.rawgit.com/fabric8io/quickstarts/master/apps/fabric8/src/main/fabric8/icon.svg",
      "fabric8.base/summary" : "Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/",
      "fabric8.base/iconUrl" : "https://cdn.rawgit.com/fabric8io/quickstarts/master/app-groups/base/src/main/fabric8/icon.svg"
    },
    "labels" : { },
    "name" : "base"
  },
  "objects" : [ {
    "apiVersion" : "v1",
    "kind" : "OAuthClient",
    "metadata" : {
      "annotations" : { },
      "labels" : { },
      "name" : "fabric8"
    },
    "redirectURIs" : [ "http://localhost:9090", "http://localhost:2772", "http://localhost:9000", "http://fabric8.${DOMAIN}", "https://fabric8.${DOMAIN}" ]
  }, {
    "apiVersion" : "v1",
    "kind" : "Service",
    "metadata" : {
      "annotations" : { },
      "labels" : {
        "component" : "console",
        "provider" : "fabric8"
      },
      "name" : "fabric8"
    },
    "spec" : {
      "deprecatedPublicIPs" : [ ],
      "ports" : [ {
        "port" : 80,
        "protocol" : "TCP",
        "targetPort" : 9090
      } ],
      "selector" : {
        "component" : "console",
        "provider" : "fabric8"
      }
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "ReplicationController",
    "metadata" : {
      "annotations" : { },
      "labels" : {
        "component" : "console",
        "provider" : "fabric8"
      },
      "name" : "fabric8"
    },
    "spec" : {
      "replicas" : 1,
      "selector" : {
        "component" : "console",
        "provider" : "fabric8"
      },
      "template" : {
        "metadata" : {
          "annotations" : { },
          "labels" : {
            "component" : "console",
            "provider" : "fabric8"
          }
        },
        "spec" : {
          "containers" : [ {
            "args" : [ ],
            "command" : [ ],
            "env" : [ {
              "name" : "OAUTH_PROVIDER",
              "value" : "${OAUTH_PROVIDER}"
            }, {
              "name" : "OAUTH_AUTHORIZE_URI",
              "value" : "https://fabric8.${DOMAIN}:8443/oauth/authorize"
            }, {
              "name" : "GOOGLE_OAUTH_CLIENT_SECRET",
              "value" : "${GOOGLE_OAUTH_CLIENT_SECRET}"
            }, {
              "name" : "GOOGLE_OAUTH_REDIRECT_URI",
              "value" : "https://fabric8.${DOMAIN}"
            }, {
              "name" : "OAUTH_CLIENT_ID",
              "value" : "fabric8"
            }, {
              "name" : "GOOGLE_OAUTH_AUTHENTICATION_URI",
              "value" : "https://accounts.google.com/o/oauth2/auth"
            }, {
              "name" : "GOOGLE_OAUTH_TOKEN_URL",
              "value" : "https://www.googleapis.com/oauth2/v3/token"
            }, {
              "name" : "GOOGLE_OAUTH_CLIENT_ID",
              "value" : "${GOOGLE_OAUTH_CLIENT_ID}"
            }, {
              "name" : "GOOGLE_OAUTH_SCOPE",
              "value" : "${GOOGLE_OAUTH_SCOPE}"
            }, {
              "name" : "KUBERNETES_NAMESPACE",
              "valueFrom" : {
                "fieldRef" : {
                  "fieldPath" : "metadata.namespace"
                }
              }
            } ],
            "image" : "docker.io/fabric8/fabric8-console:v1.0.13",
            "name" : "fabric8-container",
            "ports" : [ {
              "containerPort" : 9090,
              "name" : "http"
            } ],
            "securityContext" : { },
            "volumeMounts" : [ ]
          } ],
          "imagePullSecrets" : [ ],
          "nodeSelector" : { },
          "volumes" : [ ]
        }
      }
    }
  } ],
  "parameters" : [ {
    "description" : "Identifies the Google API access that your application is requesting. The values passed in this parameter inform the consent screen that is shown to the user.",
    "name" : "GOOGLE_OAUTH_SCOPE",
    "value" : "profile"
  }, {
    "description" : "The client ID obtained from the Developers Console",
    "name" : "GOOGLE_OAUTH_CLIENT_ID"
  }, {
    "description" : "The domain name to append to the service name to access web applications",
    "name" : "DOMAIN",
    "value" : "vagrant.f8"
  }, {
    "description" : "The OAuth provider to use. Possible values are: openshift, google",
    "name" : "OAUTH_PROVIDER",
    "value" : "openshift"
  }, {
    "description" : "The client secret obtained from the Developers Console",
    "name" : "GOOGLE_OAUTH_CLIENT_SECRET"
  } ]
}