Create your first Blueprint

Bootstrap a blueprint with the Intent to deploy a sample application

In the next couple of sections, you will learn how to prepare an environment and deploy a spring boot application. But the first step is to bootstrap a minimum required Blueprint.

Locating the Schema for writing the Blueprint

You can locate the schema of various resource types in the following location.

Most IDEs like Intellij or VS Code can use the schema and provide auto-suggestion and validation.

📘

If you are using IntelliJ, add .schema in File Types to be recognized as JSON file types.

16941694

Add .schema to be recognized as JSON (Click on the image to expand)

Prepare an empty repository to host the Blueprint

For the purpose of this guide, let's host it at https://github.com/Facets-cloud/sample-springboot-app-stack. We will only create two required files that are always required to be present in the repository. These are stack.json and features.json.

  1. Define a top level json named stack.json
{
 "$schema": "https://docs.facets.cloud/schemas/stack.schema",
 "composition": {
  "plugins": []
 },
 "stackVariables": {

 },
 "clusterVariablesMeta": {

 },
 "componentVersions": {
  "KUBERNETES": "1.19"
 }
}
  1. Define another top level json named features.json
{
  "$schema": "https://docs.facets.cloud/schemas/features.schema",
  "spec": {
    "choas_testing": false,
    "pmm": false,
    "newrelic_infra_monitoring": false,
    "pod_dumps_archival": false,
    "spot_fleet": true
  }
}

Register the Blueprint

Now register the stack in the control plane by clicking on "New Blueprint" on the top right corner. Here we have given it a name "springbootsample", but it's your choice!

Now that a blueprint has been created, we can learn how to launch an environment in Facets!


What’s Next
Did this page help you?